Flash multiple devices at the same time using command-line?

I don’t think this is currently possible, right? Something like

particle flash --device abc --device def --device ghi xxx.cpp yyy.cpp

would be nice. Right now, if I have three devices, I have to recompile three times, or compile once and reupload the firmware three times.

I’d only compile once and upload the binary three times.

particle compile <deviceType> <projectDirectory> --saveTo firmware.bin
particle flash <device1> firmware.bin
particle flash <device2> firmware.bin
particle flash <device3> firmware.bin

You can do the flashing in parallel with multiple consoles :wink:

Multiple consoles, that is it, I didn’t think of that :slight_smile:

Nah, I just put a for loop into my makefile.