Forrest logo
back to the pio tool

pio-run:tldr:7923e

pio-run: Run specified targets.
$ pio run --target ${target1} --target ${target2}
try on your machine

This command is using the PlatformIO (PIO) command-line tool to run specific build targets.

pio run is the main command that is used to compile and build a PlatformIO project.

--target is an argument to specify the target to build.

${target1} and ${target2} are variables, representing the specific targets you want to build. In this command, you can use two different targets by replacing ${target1} and ${target2} with the desired target names.

For example, if ${target1} is replaced with upload and ${target2} is replaced with clean, the command becomes pio run --target upload --target clean. In this case, it will perform the build for the upload target and then perform the build for the clean target.

This command allows you to specify multiple targets to build in a single command, without needing to run separate commands for each target.

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 pio tool