balena-sdk icon indicating copy to clipboard operation
balena-sdk copied to clipboard

SDK marrying config to an os download

Open jordan-lumley opened this issue 2 years ago • 1 comments

Not necessarily 'expected' behavior but within the CLI, you can use the 'os config generate' command to set some initial settings then in the 'os configure' command you marry that config.json with the actual '.img' file. Can't seem to do this in an automated fashion aside from running a node js exec shell to use the host system CLI which just feels dirty.

When running the sdk os.getConfig this returns the config and the os.download returns an .img file but there's not a way to my knowledge to join the two without using the CLI thus making an automated step to prepare and generate a new device addition in a programmatic fashion a little tough.

Maybe I am missing something but this is more-so a sanity check to make sure I am not missing anything.

jordan-lumley avatar Sep 14 '22 17:09 jordan-lumley

Anything??

jordan-lumley avatar Sep 27 '22 13:09 jordan-lumley