Installing Particle CLI on a Mac

The CLI is a tool that lets your computer communicate directly with the chip on your PCB. You can use it to reinstall the firmware if it becomes corrupted, or to send new WiFi credentials to the roaster.

Procedure

Step 1: Open Terminal App

Open Terminal on your Mac by doing one of the following:

  • Click the Launchpad icon in the Dock, type Terminal in the search field, then click on Terminal.

  • In the Finder, open the /Applications/Utilities folder, then double-click Terminal.

Step 2: Install CLI

Copy and paste (or type) the following line into the Terminal app:

bash <( curl -sL https://particle.io/install-cli )

If that works, the CLI is ready to use and you can skip the rest of the guide. Quit Terminal and restart the app before trying to use the CLI.

If you get any other kind of message, continue to the steps below to finish installation.


Step 3: Python

If you get a message about isntalling Python, follow the prompts to download and install Python. Once the installation is complete, return to step 2 to finish installation of the CLI.

Step 4. Rosetta

If you get a message that you need ‘Rosetta’, then follow the steps below

Install Rosetta

Open the Terminal app again and type:

softwareupdate --install-rosetta

Configure Terminal to use Rosetta

  • Go to the Terminal app in Finder, and right-click on it (or click while holding mac button).

  • Check the box marked ‘open with Rosetta’

  • Close any Terminal windows you have open, then relaunch the Terminal app.

  • Go back to step 2 to install the CLI.

Next
Next

Resetting all WiFi credentials