Options (3)
-e, --environmentbooleanList all available project targets of a specific environment
Example:
pio run --list-targets {{[-e|--environment]}} {{environment}}-t, --targetbooleanRun specified targets
Example:
pio run {{[-t|--target]}} {{target1}} {{[-t|--target]}} {{target2}}-c, --project-confbooleanRun 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-targetsList all available project targets of a specific environment
pio run --list-targets [-e|--environment] environmentRun all targets
Run all targets of specified environments
pio run [-e|--environment] environment1 [-e|--environment] environment2Run specified targets
pio run [-t|--target] target1 [-t|--target] target2Run the targets of a specified configuration file
pio run [-c|--project-conf] path/to/platformio.inimade by @shridhargupta | data from tldr-pages