Skip to content

archgate upgrade

Upgrade Archgate to the latest version.

Terminal window
archgate upgrade

Checks GitHub Releases for the latest published version. If a newer version is available, the command auto-detects how Archgate was installed and runs the appropriate upgrade strategy. If already up-to-date, prints a message and exits.

The upgrade command inspects the running binary path to determine the install method, then delegates to the matching strategy:

Install methodDetectionUpgrade action
Binary install (~/.archgate/bin/)Binary lives inside ~/.archgate/bin/Downloads the latest binary from GitHub Releases and replaces the existing one
ProtoBinary lives inside ~/.proto/tools/archgate/Runs proto install archgate latest --pin
Local dev dependencyBinary lives inside node_modules/Detects the package manager from the nearest lockfile (bun, pnpm, yarn, or npm) and runs the appropriate add command (e.g. bun add -d archgate@latest)
Global package managerBinary lives in a global bin directoryDetects which package manager owns the global bin directory and runs its upgrade command (e.g. npm install -g archgate@latest)

If no specific method is detected, the command falls back to npm install -g archgate@latest.

Terminal window
archgate upgrade
Checking for latest Archgate release...
Upgrading 0.34.0 -> 0.35.0...
Archgate upgraded to 0.35.0 successfully.