Have you read this
You can use
particle flash --usb <binary>
for the system parts and for the bootloader
particle flash --serial <bootloader.bin>