This guide outlines the changes introduced in balena CLI v22 and provides instructions for when and how to migrate.
If you are using the Windows executable (.exe) or macOS package (.pkg) installers, no changes are required for this update. You can continue to use the installers as before.
If you installed balena CLI via npm, no changes are required for this update. Your existing installation and update process remains the same.
Users of the standalone balena CLI will need to make the following adjustments:
-
Archive Format Change: The distribution archive format has changed from
.zipto.tar.gz. You will need to use thetarcommand instead ofunzipto extract the CLI.- Previous command (v21.x.x and older):
unzip balena-cli-v21.1.12-linux-x64-standalone.zip
- New command (v22.0.0 and newer):
tar -xzf balena-cli-v22.0.0-linux-x64-standalone.tar.gz
- Previous command (v21.x.x and older):
-
Executable Path Change: The path to the balena CLI executable within the extracted folder has been updated.
- Previous path (v21.x.x and older):
balena-cli/balena - New path (v22.0.0 and newer):
balena/bin/balena
- Previous path (v21.x.x and older):
Please update your scripts and any aliases to reflect these changes if you are using the standalone version.