Forrest logo
back to the particle tool

particle:tldr:41812

particle: Compile a Particle project.
$ particle compile ${device_type} ${path-to-source_code-ino}
try on your machine

This command is used to compile Particle firmware code written in the Arduino programming language. Here's a breakdown of the command:

  • particle compile: This is the main command used to compile Particle firmware code.
  • ${device_type}: This is a placeholder for the type of Particle device you are compiling the code for. You need to specify the device type here. For example, it can be 'photon' or 'electron'. Replace ${device_type} with the actual device type you intend to use.
  • ${path-to-source_code-ino}: This is a placeholder for the path to the source code file that you want to compile. You need to specify the actual path to the .ino file here. Replace ${path-to-source_code-ino} with the actual file path.

When you run this command with the appropriate device type and source code file path, it will compile the code and generate the appropriate binary (.bin) file that can be flashed onto the Particle device.

Note: This command assumes that you have the Particle CLI (Command Line Interface) tool installed and properly set up on your system.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the particle tool