Commands
upgrade
Self-update the Sentry CLI to the latest or a specific version.
Usage
sentry upgrade # Update to latest versionsentry upgrade 0.5.0 # Update to specific versionsentry upgrade --check # Check for updates without installingsentry upgrade --method npm # Force using npm to upgradeAlias: sentry update
Options
| Option | Description |
|---|---|
<version> | Target version to install (defaults to latest) |
--check | Check for updates without installing |
--method <method> | Force installation method: curl, npm, pnpm, bun, yarn |
Installation Detection
The CLI auto-detects how it was installed and uses the same method to upgrade:
| Method | Detection |
|---|---|
| curl | Binary located in ~/.sentry/bin (installed via cli.sentry.dev) |
| npm | Globally installed via npm install -g sentry |
| pnpm | Globally installed via pnpm add -g sentry |
| bun | Globally installed via bun install -g sentry |
| yarn | Globally installed via yarn global add sentry |
Examples
Check for updates
sentry upgrade --checkInstallation method: curlCurrent version: 0.4.0Latest version: 0.5.0
Run 'sentry upgrade' to update.Upgrade to latest
sentry upgradeInstallation method: curlCurrent version: 0.4.0Latest version: 0.5.0
Upgrading to 0.5.0...
Successfully upgraded to 0.5.0.Upgrade to specific version
sentry upgrade 0.5.0Force installation method
If auto-detection fails or you want to switch installation methods:
sentry upgrade --method npm