balena-io / balena-cli

The official balena CLI tool.
Apache License 2.0
457 stars 143 forks source link

Add a warning when preloading an image while the application uses a pinned release #863

Open thgreasi opened 6 years ago

thgreasi commented 6 years ago

We should probably also point the user on how to workaround this:

  1. pre-register the device with a custom uuid with resin device register MyApp --uuid <uuid> as documented at https://docs.resin.io/reference/cli/#device-register-application- . After this, the pre-registered device will show up in the dashboard.
  2. pin the pre-registered device to the desired commit using the set-device-to-a-build.sh as found at the staged-releases repository at https://github.com/resin-io-playground/staged-releases
  3. preload the device with the desired commit with resin preload path/to/resin.img --app MyApp -c <the target commit uuid> as documented at https://docs.resin.io/reference/cli/#preload-image-
  4. set the custom device uuid before writing the image to the device medium with resin os configure ../path/rpi.img --device 7cf02a6 as documented at https://docs.resin.io/reference/cli/#os-configure-image-uuid-deviceapikey-

Front logo Front conversations

pdcastro commented 5 years ago

It would be nice if the CLI could simplify the process by automating some of steps described.