Skip to content
NewNexus 2.0 is here, and it’s open source. Read the launch post

CLI reference

update

Update this CLI to the version your Gateway publishes (GET /cli/version).

View as Markdown

nexus update

nexus update [--check] [--rollback] [--json]

Update this CLI to the version your Gateway publishes (GET /cli/version).

OptionMeaning
--checkOnly check; change nothing
--rollbackRestore the version before the last update
--jsonPrint only JSON on stdout
Exit codeMeaning
0Updated, already up to date, rolled back, or (--check) checked
1Nothing changed: Gateway unreachable, a checksum mismatch, or this CLI was not installed by Nexus's installer
Examples
nexus update
nexus update --check --json
nexus update --rollback

Generated from the CLI's own command list (nexus help --json), version 0.45.0. nexus help and nexus <command> --help always show your installed version.