Particle CLI
The Particle command line interface (CLI) allows you to perform several important operations on your device locally. This can be more convenient than using the Web console. To get started:
- Make sure you have an account
- Tutorial
- Reference
- Put the device into listening mode
Changing modes
Particle device have several operating modes, and you can tell which mode the device is in by the way the onboard LED is flashing. To change from one mode to another, you need to use both of the onboard buttons. Holding down the left button, push and release the right button. While both buttons are pressed, the LED shows stead white. After releasing the right button, the LED cycles through a series of flash patterns. When it reaches the mode you want, release the left button.
Update device OS over serial
- Connect to serial
- Update cli
- Put device into DFU mode
particle update
Log into your Particle account
particle login
- Enter your details at the prompts
Claim device
- Put device into listening mode
particle identify
- Copy device id (24 hex characters)
- Connect device to wifi - may take a minute or so
- Claim the device with the command
particle device add <device_id>
replacingwith the 16 character value you copied earlier
Unclaim device
- Make sure the device is connected to the Particle console
- Open the Particle CLI and type the command
particle remove <device_id>
whereis the 16-character hex identifier for the device.