upgrade
Run capa upgrade when capa notifies you that a newer version is available, or whenever you want the latest release.
Synopsis
Section titled “Synopsis”capa upgrade [-y]| Flag | Description |
|---|---|
-y, --yes | Skip the confirmation prompt (required in non-interactive / CI environments) |
Global flags still apply; see Global flags.
After most other commands, capa may print a notice if an update exists and point you here.
How it works
Section titled “How it works”capa upgrade never pipes a mutable installer from the web. Instead it:
- Looks up the latest release tag on GitHub.
- Downloads that release’s
SHA256SUMS.txtand prints a preview: version, installer (install.sh, orinstall.ps1on Windows), its URL and SHA-256, and the binary asset with its SHA-256. - Asks for confirmation (default: no). Without a TTY, it exits unless you pass
--yes. - Downloads the tagged installer and checks its SHA-256 against
SHA256SUMS.txt. A mismatch aborts the upgrade. - Stops the capa server if it is running.
- Runs the verified local copy of the installer with
CAPA_VERSIONset to the release, which in turn verifies the binary checksum.
Downloads are restricted to https://github.com and https://api.github.com.
To install a specific (older or pinned) version instead of the latest, use the install script with CAPA_VERSION; see Installation.
Examples
Section titled “Examples”capa upgradecapa upgrade --yes