stackblaze upgrade
Downloads the newest CLI build for your platform and replaces the running binary.
stackblaze upgrade [--channel stable|dev] [--version <x.y.z>] [--install-path <file>]| Flag | Description |
|---|---|
--channel <name> |
stable (default) or dev (prereleases); also STACKBLAZE_CHANNEL |
--version <tag> |
Install a specific version, e.g. 1.0.0 |
--install-path <path> |
Binary to replace (default: the running binary; also STACKBLAZE_INSTALL_PATH) |
--oras |
Download with the oras tool instead of the built-in client |
Examples
Section titled “Examples”stackblaze upgradestackblaze upgrade --channel devstackblaze upgrade --version 1.0.0On Linux and macOS the old binary is kept next to the new one as stackblaze.bak (if it can be renamed). On Windows, the running binary cannot be replaced: upgrade writes stackblaze.new.exe next to it and asks you to swap the files after closing the terminal. Re-running the installer also upgrades.
Check the version with stackblaze --version.