How to see the firmware version and how to update it to most current version

to update

npm install -g particle-cli
# put device in DFU mode
particle update