# Configure OS without CLI

**URL:** <https://forums.balena.io/t/configure-os-without-cli/247270>\
**Category:** Product support\
**Tags:** balena-cli\
**Created:** [February 2, 2021, 9:20am UTC](https://forums.balena.io/t/configure-os-without-cli/247270 "2021-02-02T09:20:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pcorbel](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pcorbel/32/4801_2.png) [@pcorbel](https://forums.balena.io/u/pcorbel)\
**Post date:** [February 2, 2021, 9:20am UTC](https://forums.balena.io/t/configure-os-without-cli/247270/1 "2021-02-02T09:20:32Z")

</div>

Hello there, 👋

I am currently setting up a project where I want to generate BalenaOS .img files dynamically server-side and then serve them to user 👌

To achieve this, I am invoking the CLI  
`balena login`  
then `balena os configure my-custom.img`  
then `zip my-custom.img.zip my-custom.img`  
finally serve my-custom.img.zip

However, the process take a lot of time 🐌 and since he whole process “only add the config.json in the .img disk file” I was wondering if it was possible (I have a preference for Python) to add it via the SDK or another tool either directly in the .img file on even better in the zipped .img file.

Thanks a lot for your experience sharing 🤝

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [February 2, 2021, 1:01pm UTC](https://forums.balena.io/t/configure-os-without-cli/247270/7 "2021-02-02T13:01:06Z")

</div>

Thank you for your message.

Actually this is what balenaCloud does. However you can find the logics how to do it on etcher-sdk. You can download and configure a balenaOS image from s3 with this here [etcher-sdk/balena-s3-configure.ts at master · balena-io-modules/etcher-sdk · GitHub](https://github.com/balena-io-modules/etcher-sdk/blob/master/examples/balena-s3-configure.ts)

Clone the repo, run `npm i` then run `./node_modules/.bin/ts-node examples/balena-s3-configure.ts`

Let us know if you succeed.
