commands.sh

pio run

all

Run PlatformIO project targets.

More info →

Options (3)

-e, --environmentboolean

List all available project targets of a specific environment

Example: pio run --list-targets {{[-e|--environment]}} {{environment}}
-t, --targetboolean

Run specified targets

Example: pio run {{[-t|--target]}} {{target1}} {{[-t|--target]}} {{target2}}
-c, --project-confboolean

Run the targets of a specified configuration file

Example: pio run {{[-c|--project-conf]}} {{path/to/platformio.ini}}

Examples (6)

List all available project targets

pio run --list-targets

List all available project targets of a specific environment

pio run --list-targets [-e|--environment] environment

Run all targets

Run all targets of specified environments

pio run [-e|--environment] environment1 [-e|--environment] environment2

Run specified targets

pio run [-t|--target] target1 [-t|--target] target2

Run the targets of a specified configuration file

pio run [-c|--project-conf] path/to/platformio.ini
made by @shridhargupta | data from tldr-pages