Type: String | Multiple: Yes

The pio run command processes all environments [env:***] by default if the pio run --environment option is not specified. default_envs allows one to define which environments that should be processed by default.

Also, Debugging checks this option when looking for debug environment.

This option can also be configured by the global environment variable PLATFORMIO_DEFAULT_ENVS.


default_envs = uno, nodemcu

platform = atmelavr
framework = arduino
board = uno

platform = espressif8266
framework = arduino
board = nodemcu

platform = teensy
framework = arduino
board = teensy31

platform = timsp430
framework = arduino
board = lpmsp430g2553
build_flags = -D LED_BUILTIN=RED_LED