Build multiple environments, upload only one

Is there an option to specify in platformio.ini which will allow an upload command to build multiple environments but upload only one? I have two different environments for debug and live firmware versions, and I’d like to build both simultaneously but upload only the debug or the live version.

# build all
pio run

# upload specific
pio run -t upload -e myenv

Please also check PlatformIO IDE for VSCode, it has Project Task Manager.

This option also could be useful Redirecting...

1 Like