particle-iot / particle-cli

Command Line Interface for Particle Cloud and devices
Apache License 2.0
212 stars 92 forks source link

feature/sc-121627/make-particle-update-command-uses-the-new #663

Closed hugomontero closed 1 year ago

hugomontero commented 1 year ago

Description

Make particle update uses the new flash methods

How to Test

Try the follow cases by connecting your device in Normal mode and then in DFU mode

  1. particle update
    • It will take the latest device OS version for the device and flash it
    • In case you have 2 o more device connected it will prompt to you to pick one
  2. particle update ${deviceID}
    • It will take the latest device OS version for the specified device and flash it
    • In case you have 2 o more devices it will ignore it and look for the specified one.
  3. particle update --target 3.3.0
    • It will get all binaries for 3.3.0 device os version and flash it into the device
    • In case you have 2 o more device connected it will prompt to you to pick one
  4. particle update --target 3.3.0 ${deviceID}
    • It will get all binaries for 3.3.0 device os version and flash it into the device.
    • In case you have 2 o more devices it will ignore it and look for the specified one.

Related Issues / Discussions

Completeness