Skip to content

av update

Upgrade the CLI to the latest published release, in place.

Terminal window
av update [flags]

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.

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)

See what is installed and what is available:

Terminal window
av update --check

Upgrade to the latest release:

Terminal window
av update

Pin a specific release:

Terminal window
av update --version v0.4.0
Code Meaning
0 Updated successfully, or already up to date
1 Any failure, including checksum verification