# balena preload breaks when using --config

**URL:** <https://forums.balena.io/t/balena-preload-breaks-when-using-config/374527>\
**Category:** Product support\
**Tags:** balena-cli\
**Created:** [July 9, 2025, 9:19am UTC](https://forums.balena.io/t/balena-preload-breaks-when-using-config/374527 "2025-07-09T09:19:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![smic](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@smic](https://forums.balena.io/u/smic)\
**Post date:** [July 9, 2025, 9:19am UTC](https://forums.balena.io/t/balena-preload-breaks-when-using-config/374527/1 "2025-07-09T09:19:43Z")

</div>

Hello,  
I initially opened a bug on github (see here [balena preload breaks when using --config · Issue #2960 · balena-io/balena-cli · GitHub](https://github.com/balena-io/balena-cli/issues/2960)) but while waiting for a response i started thinking I may not be using the tool in the right way.

So, my goal is to create a base image of balena os, preloading it with the latest version of my app and an ssh public key I could use to ssh into the device from local network to troubleshoot when this cannot to cloudlink.

The commands I put together are as follow (also visible in the github ticket)

```auto
balena os download generic-amd64 --version v6.5.39+rev2 --output test.img
balena os build-config test.img generic-amd64 --output test.config.json
balena os configure test.img --version v6.5.39+rev2 --fleet <my-fleet> --config test.config.json
balena preload test.img --fleet <my-fleet> --commit <my-app-commit-id>

```

As anybody succeeded in this?

---

<div class="post-metadata">

**Author:** ![joshbwlng](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/joshbwlng/32/10307_2.png) [@joshbwlng](https://forums.balena.io/u/joshbwlng)\
**Post date:** [July 15, 2025, 2:03am UTC](https://forums.balena.io/t/balena-preload-breaks-when-using-config/374527/2 "2025-07-15T02:03:15Z")

</div>

Hi @smic just wanted to let you know I left a response/question on the issue you opened

---

<div class="post-metadata">

**Author:** ![smic](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@smic](https://forums.balena.io/u/smic)\
**Post date:** [July 28, 2025, 1:56pm UTC](https://forums.balena.io/t/balena-preload-breaks-when-using-config/374527/3 "2025-07-28T13:56:22Z")

</div>

thank you very much @joshbwlng.  
Looking forward for a fix

---

<div class="post-metadata">

**Author:** ![rahul-thakoor](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@rahul-thakoor](https://forums.balena.io/u/rahul-thakoor)\
**Post date:** [July 30, 2025, 11:16am UTC](https://forums.balena.io/t/balena-preload-breaks-when-using-config/374527/4 "2025-07-30T11:16:03Z")

</div>

> [@smic](#):
>
> balena preload breaks when using --config · Issue #2960 · balena-io/balena-cli · GitHub

Hello @smic  
As mentioned in your support ticket and the github, the recommended way is to use `balena config generate`

We appreciate the fact that having two different commands to achieve the same thing but also not working correctly can be confusing. We working towards improving the relevant commands and deprecating `balena os build-config` and `balena os configure` commands

thanks for raising this issue
