balena-cli
balena-cli copied to clipboard
CLI reconfiguring dev variant balenaOS images to prod by default
When downloading unmanaged dev balenaOS images from balena.io/os
, and using balena os configure
to configure them then the CLI configures them back to the production
variant by default.
Steps to reproduce
- Download a dev image from balena.io/os
- Mount the image and confirm in the config.json that
developmentMode=true
- Use
balena os configure IMAGE_PATH -f FLEET_NAME
to configure image for balenaCloud - Check again and the
developmentMode=true
option would have been deleted.
Feature request
Instead of configure images back to production variant by default, it would be better if there is an extra prompt to select between prod and dev variants. I am aware of this flag: https://www.balena.io/docs/reference/balena-cli/#--dev but changing the default behavior that has been like this for years now might not be ideal. I feel like adding a prompt provides the right nudge to the users to be in control of the OS configuration as they see fit.
Context: https://www.flowdock.com/app/rulemotion/r-product/threads/TSFbsP3fyBac9sG-P3hcxtLMs2o