If you have a project set up with multiple board configurations, is there a way to tell it to build for and/or upload to ‘only’ a specific configuration? I keep commenting out the one I’m not using and got to wondering if there wasn’t a way to leave them both uncommented and tell the upload to only use a specific env section.
I think you can specify the env you want with the -e or --environment option as shown here.
Alternatively, in the platform.ini file you can specify the default environment like this:
#env_default = myEnv1
env_default = myEnv2
Now you only have to (un)comment one line