Unable to download balena OS using CLI

My versions:

$ balena --version
11.36.0
$ node --version
v14.4.0

I have found that I can’t download any OSes for raspberrypi4 using the Balena CLI.

Some outputs:

Firstly, downloading using the menu:

$ balena os download raspberrypi4-64 -o pi.img --version menu
Getting device operating system for raspberrypi4-64
? Select the OS version: v2.41.0+rev4.prod
No such version for the device type

Secondly, simply trying to pull down the latest version:

$ balena os download raspberrypi4-64 -o pi.img --version latest
Getting device operating system for raspberrypi4-64
No such version for the device type

Thirdly, trying a different version string:

$ balena os download raspberrypi4-64 -o pi.img --version 2.46  
Getting device operating system for raspberrypi4-64
version.replace is not a function

I am feeling a bit at a loss here; it was hard to find the slug, but if the sane defaults aren’t available for download either, I’m not sure if I can trust the CLI.

The reason I was looking for version 2.46 btw, was to see if I could get an older version to connect to OpenBalena, as I saw in some other thread that there’s issues with balenaOS after version 2.46 when connecting with an openBalena server.

Hi @ericmjl.
You are right is seems a bit confusing.
OpenBalena does not support image downloads at the moment, and it seems you have to get the images from balena.io/os.
In case you are interested, you can subscribe to this open GH issue and track its progress.

Let me know if you have any further questions about that.
Georgia

Thanks @georgiats! May I ask, how do I download an older version of balenaOS? For example, I’m looking for 2.46, which seems to be the last supported version that can connect to openBalena.

Hi there, you can download the latest 2.46 using this link:

https://api.balena-cloud.com/download?deviceType=raspberrypi4-64&version=2.46.1+rev3.prod&fileType=.zip