Skip to content

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
Terminal window
stackblaze upgrade
stackblaze upgrade --channel dev
stackblaze upgrade --version 1.0.0

On 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.