Upload one code to many port together

I can upload one code to many NodeMCU same time by use port /dev/ttyUSB0 , /dev/ttyUSB1 …

There are a few options:

  1. Create multiple environments and use different upload_port options
  2. Call platformio run --upload-port command with the different upload ports