2021-04-25 06:51:16 +02:00
|
|
|
# pio run
|
|
|
|
|
|
|
|
> Run PlatformIO project targets.
|
|
|
|
> More information: <https://docs.platformio.org/en/latest/core/userguide/cmd_run.html>.
|
|
|
|
|
|
|
|
- List all available project targets:
|
|
|
|
|
|
|
|
`pio run --list-targets`
|
|
|
|
|
|
|
|
- List all available project targets of a specific environment:
|
|
|
|
|
2025-04-27 10:59:15 +03:00
|
|
|
`pio run --list-targets {{[-e|--environment]}} {{environment}}`
|
2021-04-25 06:51:16 +02:00
|
|
|
|
|
|
|
- Run all targets:
|
|
|
|
|
|
|
|
`pio run`
|
|
|
|
|
|
|
|
- Run all targets of specified environments:
|
|
|
|
|
2025-04-27 10:59:15 +03:00
|
|
|
`pio run {{[-e|--environment]}} {{environment1}} {{[-e|--environment]}} {{environment2}}`
|
2021-04-25 06:51:16 +02:00
|
|
|
|
|
|
|
- Run specified targets:
|
|
|
|
|
2025-04-27 10:59:15 +03:00
|
|
|
`pio run {{[-t|--target]}} {{target1}} {{[-t|--target]}} {{target2}}`
|
2021-04-25 06:51:16 +02:00
|
|
|
|
|
|
|
- Run the targets of a specified configuration file:
|
|
|
|
|
2025-04-27 10:59:15 +03:00
|
|
|
`pio run {{[-c|--project-conf]}} {{path/to/platformio.ini}}`
|