Better offline experience

From what I gathered it’s impossible to set a device to be offline, while offline. The commands:

balena env add BALENA_SUPERVISOR_LOCAL_MODE 1 and balena device local-mode --enable

Depend on the device being online. That’s terrible offline DX. Any plans to improve this?

Hello, There doesn’t appear to be a way to do this at the moment. I’d like to create a github issue in the CLI repo to track this as a feature request. Please could you provide more information on your use case so we capture all relevant info. Thanks for raising this.

That would be awesome @srlowe, thanks for the quick response.

While completely offline at all times we should be able too:

  1. Burn a preloaded or pre-downloaded development Balena image to a sd card
  2. Boot the device and put it into local-mode
  3. Update the device using balena push (which isn’t working at the moment)

PS.: Noticed the use case yesterday when the Balena APIs were down and I was unable to put a device in local-mode because of that. Our development should never be blocked because of problems in the cloud, that’s terrible developer experience.

Hi Luandro! Thanks for the details! We have created this Github issue: Allow setting local mode without cloud access · Issue #2424 · balena-io/balena-cli · GitHub