Photon DFU mode via command line


Hallo experts, i need to flash firmware on photon possibly via wifi (private cloud).
For doing this i’d like to enter DFU mode without accessing Physically the device, but through a suitable command.
Is it possible?
Thank You

PS i read a similar thread at

but was wondering if there is something newer


If the device is connected and you know its USB Serial port on your host system you can just set the baudrate to 14400 which will cause the device to enter DFU Mode

e.g. for Windows CMD or PowerShell

mode COMx 14400

Or via firmware and some way (e.g. Particle.function()) to execute System.dfu()


I think in later firmware safemode should work in private cloud



Thank you all for quick reply, I’ll try.