Download image pre-configured with an existing device's ID

Hi there!

I think it could be very handy, if in Balena Cloud, on a device page (especially on an offline device), one could download an image pre-configured for the same UUID/device ID, so that the local CLI steps don’t need to be done.

Recently I was trying to bring back online a device that had its SD card wiped. I didn’t want to register a new device, because the existing one had already been whitelisted in some other tools, and would have made it easier to just bring it up again.

First I was trying to follow the Create/Use Pre-existing Offline Device steps from the wiki - however the steps were somewhat confusing (especially around Configure balenaOS Image), as well as I am on ArchLinux, where the balena-cli can’t seem to be installed (the package is asking for waaaaay to old nodejs installation that cannot be satisfied), so I ended up trying to hack the config.json from memory of how that might work - but it never brought up the existing device, rather I had new devices created on boot.

Since from the cloud web interface once can download various pre-configured versions, this doesn’t seem like a stretch.

Of course this can be a foot-gun (people acidentally boot up the “same device” in two different hardware, etc..) but with appropriate warnings that should be manageable? :thinking:

Hey Greg! We miss you over here at Balena! Thats a great suggestion and something I have wanted to build for a while. I’m not 100% sure we can prioritise it right now but we will keep you up to date.
The CLI flow for doing this is really not great, maybe there is low hanging fruit we could find to make it slightly easier?

PS> We should catch up on a call sometime :slight_smile: