← 返回命令列表

Linux command

particle 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Login to Particle

particle login

List devices

particle list

Flash device

particle flash [device_name] [firmware.bin]

Compile locally

particle compile [photon] [project_dir]

Monitor serial output

particle serial monitor

Call device function

particle call [device_name] [function] [arg]

Get device variable

particle get [device_name] [variable]

Setup new device

particle setup

说明

particle controls Particle IoT devices. It manages device firmware, cloud functions, and variables. Devices include Photon, Argon, Boron, and Electron boards. Cloud connectivity enables remote management. Compilation can happen locally or in Particle Cloud. Flashing sends firmware over-the-air or via USB. Functions and variables expose device capabilities. Events enable pub/sub messaging between devices. Serial monitoring shows device debug output. Useful during development and troubleshooting.

参数

login
Authenticate with Particle Cloud.
list
List claimed devices.
flash
Flash firmware to device.
compile
Compile project.
serial
Serial port commands.
call
Call device function.
get
Get device variable.
setup
Setup new device.
subscribe
Subscribe to events.
publish
Publish event.
webhook
Manage webhooks.

FAQ

What is the particle command used for?

particle controls Particle IoT devices. It manages device firmware, cloud functions, and variables. Devices include Photon, Argon, Boron, and Electron boards. Cloud connectivity enables remote management. Compilation can happen locally or in Particle Cloud. Flashing sends firmware over-the-air or via USB. Functions and variables expose device capabilities. Events enable pub/sub messaging between devices. Serial monitoring shows device debug output. Useful during development and troubleshooting.

How do I run a basic particle example?

Run `particle login` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does login do in particle?

Authenticate with Particle Cloud.