Specifying device with `particle flash --serial`

Is there a way to specify a device (e.g. /dev/tty.usbmodem100000) when using particle-cli? I’ve been looking for a way but can’t find it.

EDIT: I see that you can specify device name or ID now.

EDIT2: Correct me if I’m wrong, but I read it was only for OTA flashing.

https://docs.particle.io/reference/cli/#particle-flash offers you --usb , or if you have an STlink programmer you can also use that but arguable that is not as simple.

The way I use particle flash --serial is with the firmware file name. It hunts for a USB device in serial mode.

Compile the firmware first and download it to your local machine. particle compile photon.

Then, particle flash --serial photon_xxxxx.bin

For the Mac, I usually ping the tty first using stty at 14400 to put the device in serial mode instead of fussing with the mode button.