Skip to content
Development
Command

/cli

`sentry cli upgrade nightly` and `sentry cli upgrade stable` switch channels. After switching, bare `sentry cli upgrade` will continue tracking that channel.

From plugin
toolkit
96746 skills1 agent46 commands2 MCP
> /plugin marketplace add getsentry/toolkit
> /plugin install sentry-mcp@sentry-mcp

Command definition

cli.md

Release Channels

`sentry cli upgrade nightly` and `sentry cli upgrade stable` switch channels. After switching, bare `sentry cli upgrade` will continue tracking that channel.

| Channel | Description | |---------|-------------| | `stable` | Latest stable release (default) | | `nightly` | Built from `main`, updated on every commit |

Undo an upgrade

Before switching versions, `sentry cli upgrade` saves a copy of the local database for the version it replaces, in `backups/` under the config directory. `sentry cli upgrade undo` reinstalls that version and restores its database. The logins you have now are kept when that version stores them the same way; otherwise the command says so, and you may need to run `sentry auth login`. Other changes since the upgrade, such as defaults, are undone.

One backup is kept per version, up to the five most recent. They contain your credentials, so only your user can read them. Undo only covers version changes made with `sentry cli upgrade`, not ones made through npm or Homebrew directly. Homebrew can't install an earlier version, so on a Homebrew install run `sentry cli upgrade undo --method curl` to return to it as a standalone binary.

Installation Detection

The CLI detects how it was installed and uses the appropriate upgrade method:

| Method | Detection | |--------|-----------| | curl | Binary installed via cli.sentry.dev (XDG: `~/.local/bin`; legacy: `~/.sentry/bin`) | | brew | Binary in a Homebrew Cellar (`brew install getsentry/tools/sentry`) | | npm | Globally installed via `npm install -g sentry` | | pnpm | Globally installed via `pnpm add -g sentry` | | bun | Globally installed via `bun add -g sentry` | | yarn | Globally installed via `yarn global add sentry` |

Nightly builds are only available as standalone binaries (via the curl install method). Switching to nightly from a Homebrew or package manager install will automatically migrate to a standalone binary.

Feedback

Feedback is sent via Sentry's telemetry system. If telemetry is disabled (`SENTRY_CLI_NO_TELEMETRY=1`, `DO_NOT_TRACK=1`, or `sentry cli defaults telemetry off`), feedback cannot be sent.

Shell integration

For zsh, setup initializes completion when needed and registers Sentry even if another tool has already initialized it. Running setup again repairs completion configuration from older installs. Restart your shell or source your `.zshrc` after setup to load the changes.

Read more
@getsentry
Ships withtoolkit

This repository contains the Sentry CLI, the Sentry MCP server, and shared packages. For the CLI, see the CLI guide and the published documentation at . The documentation index covers both products and shared contributor guidance.

9671 skill1 agent2 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
967
Star history of getsentry/sentry-mcp on GitHub, a chart by star-history.com

Other commands on toolkit.

explore

explore

Command

Enter explore mode - think through ideas, investigate problems, clarify requirements

@getsentry@getsentryInstall Command
propose

propose

Command

Propose a new change - create it and generate all artifacts in one step

@getsentry@getsentryInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command