diff --git a/docs/balena-cli.md b/docs/balena-cli.md index 1e75d9ff..ddb1586b 100644 --- a/docs/balena-cli.md +++ b/docs/balena-cli.md @@ -801,6 +801,7 @@ Examples: $ balena device init $ balena device init -f myorg/myfleet + $ balena device init --fleet myFleet --os-version 2.101.7 --drive /dev/disk5 --config config.json --yes $ balena device init --fleet myFleet --os-version 2.83.21+rev1.prod --drive /dev/disk5 --config config.json --yes ### Options @@ -922,6 +923,7 @@ Requires balenaCloud; will not work with openBalena or standalone balenaOS. Examples: $ balena device os-update 23c73a1 + $ balena device os-update 23c73a1 --version 2.101.7 $ balena device os-update 23c73a1 --version 2.31.0+rev1.prod ### Arguments @@ -2065,9 +2067,11 @@ Development images can be selected by appending `.dev` to the version. Examples: $ balena os download raspberrypi3 -o ../foo/bar/raspberry-pi.img + $ balena os download raspberrypi3 -o ../foo/bar/raspberry-pi.img --version 2.101.7 + $ balena os download raspberrypi3 -o ../foo/bar/raspberry-pi.img --version 2022.7.0 + $ balena os download raspberrypi3 -o ../foo/bar/raspberry-pi.img --version ^2.90.0 $ balena os download raspberrypi3 -o ../foo/bar/raspberry-pi.img --version 2.60.1+rev1 $ balena os download raspberrypi3 -o ../foo/bar/raspberry-pi.img --version 2.60.1+rev1.dev - $ balena os download raspberrypi3 -o ../foo/bar/raspberry-pi.img --version ^2.60.0 $ balena os download raspberrypi3 -o ../foo/bar/raspberry-pi.img --version 2021.10.2.prod $ balena os download raspberrypi3 -o ../foo/bar/raspberry-pi.img --version latest $ balena os download raspberrypi3 -o ../foo/bar/raspberry-pi.img --version default diff --git a/lib/commands/device/init.ts b/lib/commands/device/init.ts index 1648fe45..fa6dc2e8 100644 --- a/lib/commands/device/init.ts +++ b/lib/commands/device/init.ts @@ -70,6 +70,7 @@ export default class DeviceInitCmd extends Command { public static examples = [ '$ balena device init', '$ balena device init -f myorg/myfleet', + '$ balena device init --fleet myFleet --os-version 2.101.7 --drive /dev/disk5 --config config.json --yes', '$ balena device init --fleet myFleet --os-version 2.83.21+rev1.prod --drive /dev/disk5 --config config.json --yes', ]; diff --git a/lib/commands/device/os-update.ts b/lib/commands/device/os-update.ts index af736b8e..fa0df5cd 100644 --- a/lib/commands/device/os-update.ts +++ b/lib/commands/device/os-update.ts @@ -46,6 +46,7 @@ export default class DeviceOsUpdateCmd extends Command { `; public static examples = [ '$ balena device os-update 23c73a1', + '$ balena device os-update 23c73a1 --version 2.101.7', '$ balena device os-update 23c73a1 --version 2.31.0+rev1.prod', ]; diff --git a/lib/commands/os/download.ts b/lib/commands/os/download.ts index 8140c77e..322939ac 100644 --- a/lib/commands/os/download.ts +++ b/lib/commands/os/download.ts @@ -53,9 +53,11 @@ export default class OsDownloadCmd extends Command { `; public static examples = [ '$ balena os download raspberrypi3 -o ../foo/bar/raspberry-pi.img', + '$ balena os download raspberrypi3 -o ../foo/bar/raspberry-pi.img --version 2.101.7', + '$ balena os download raspberrypi3 -o ../foo/bar/raspberry-pi.img --version 2022.7.0', + '$ balena os download raspberrypi3 -o ../foo/bar/raspberry-pi.img --version ^2.90.0', '$ balena os download raspberrypi3 -o ../foo/bar/raspberry-pi.img --version 2.60.1+rev1', '$ balena os download raspberrypi3 -o ../foo/bar/raspberry-pi.img --version 2.60.1+rev1.dev', - '$ balena os download raspberrypi3 -o ../foo/bar/raspberry-pi.img --version ^2.60.0', '$ balena os download raspberrypi3 -o ../foo/bar/raspberry-pi.img --version 2021.10.2.prod', '$ balena os download raspberrypi3 -o ../foo/bar/raspberry-pi.img --version latest', '$ balena os download raspberrypi3 -o ../foo/bar/raspberry-pi.img --version default',