av update
Upgrade the CLI to the latest published release, in place.
Synopsis
Section titled “Synopsis”av update [flags]Description
Section titled “Description”av update resolves the latest published version, downloads the binary for
your platform together with that release’s SHA256SUMS, and verifies the
checksum before anything on disk is touched. If verification fails, nothing
is replaced and the command exits non-zero.
The running binary is swapped in place. If an av alias sits next to it, the
alias is updated too, and if the MCP router is installed alongside the CLI it
is upgraded with the same verification whenever the target release ships it.
The CLI also checks for new versions in the background (at most once per day)
and prints a one-line notice on stderr when an upgrade is available. Set
ALERTAVULN_NO_UPDATE_CHECK=1 to turn the notice off; it is also skipped in
CI environments.
Options
Section titled “Options”| Flag | Default | Description |
|---|---|---|
--check |
- | Report the installed and latest versions without changing anything |
--version |
latest | Install a specific release, e.g. v0.4.0 (permits a deliberate downgrade) |
Examples
Section titled “Examples”See what is installed and what is available:
av update --checkUpgrade to the latest release:
av updatePin a specific release:
av update --version v0.4.0Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | Updated successfully, or already up to date |
| 1 | Any failure, including checksum verification |