archgate upgrade
Upgrade Archgate to the latest version.
archgate upgradeChecks 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.
Install method detection
Section titled “Install method detection”The upgrade command inspects the running binary path to determine the install method, then delegates to the matching strategy:
| Install method | Detection | Upgrade action |
|---|---|---|
Binary install (~/.archgate/bin/) | Binary lives inside ~/.archgate/bin/ | Downloads the latest binary from GitHub Releases and replaces the existing one |
| Proto | Binary lives inside ~/.proto/tools/archgate/ | Runs proto install archgate latest --pin |
| Local dev dependency | Binary 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 manager | Binary lives in a global bin directory | Detects 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.
Example
Section titled “Example”archgate upgradeChecking for latest Archgate release...Upgrading 0.34.0 -> 0.35.0...Archgate upgraded to 0.35.0 successfully.