CLI reference/Server and administration
clavis upgrade
Install the latest Clavis release
sh
clavis upgrade [ARCHIVE] [flags]Install the latest release, the way this copy was installed:
- Homebrew, Scoop, WinGet,
go install: runs the package manager's upgrade after you confirm. - Install script or downloaded binary: downloads the release for your system, checks it against the release's
checksums.txt(and its cosign signature whencosignis installed), and replaces itself. - Docker, Helm, .deb, .rpm, .apk, source builds: prints the command, since those are upgraded outside the CLI.
clavis update only checks; clavis upgrade installs. With ARCHIVE, it verifies a release you downloaded yourself with cosign, and --install puts it in place.
Examples
sh
clavis upgradeWithout the question, for scripts
sh
clavis upgrade --yesA specific version from a mirror
sh
clavis upgrade --version 0.3.3 --download-base https://mirror.example.com/clavisVerify a downloaded archive, then install it
sh
clavis upgrade clavis_0.3.3_linux_amd64.tar.gz --installFlags
--bundle string- with ARCHIVE: Sigstore bundle (default ARCHIVE.sigstore.json)
--download-base string- where releases are downloaded from, for a mirror (default: GitHub releases)
--identity string- with ARCHIVE: certificate identity regexp
--install- with ARCHIVE: replace the running binary after verification
--issuer string- with ARCHIVE: OIDC issuer
--version string- version to install (default: the latest release)
-y, --yes- don't ask before upgrading
Global flags
These work with every command.
--debug- enable debug logging
--env string- environment slug
--json- output machine-readable JSON
--org string- organization slug
--overlay string- tenant/region overlay slug
--path string- folder path (default /)
--project string- project slug
--server string- Clavis server URL (default: from .clavis.yaml or saved login)
-h, --help- help for any command