Skip to content
Docs GitHub

cli

CLI-related commands

Commands

sentry cli feedback <message...>

Send feedback about the CLI

Arguments:

ArgumentDescription
<message...>Your feedback message

sentry cli fix

Diagnose and repair CLI database issues

Options:

OptionDescription
--dry-runShow what would be fixed without making changes

sentry cli setup

Configure shell integration

Options:

OptionDescription
--installInstall the binary from a temp location to the system path
--method <method>Installation method (curl, npm, pnpm, bun, yarn)
--channel <channel>Release channel to persist (stable or nightly)
--no-modify-pathSkip PATH modification
--no-completionsSkip shell completion installation
--no-agent-skillsSkip agent skill installation for AI coding assistants
--quietSuppress output (for scripted usage)

sentry cli upgrade <version>

Update the Sentry CLI to the latest version

Arguments:

ArgumentDescription
<version>Specific version (e.g. 0.5.0), or "nightly"/"stable" to switch channel; omit to update within current channel

Options:

OptionDescription
--checkCheck for updates without installing
--forceForce upgrade even if already on the latest version
--offlineUpgrade using only cached version info and patches (no network)
--method <method>Installation method to use (curl, brew, npm, pnpm, bun, yarn)

All commands support --json for machine-readable output and --fields to select specific JSON fields.

Examples

Check for updates

Terminal window
sentry cli upgrade --check
Installation method: curl
Current version: 0.4.0
Channel: stable
Latest version: 0.5.0
Run 'sentry cli upgrade' to update.

Upgrade

Terminal window
# Upgrade to latest stable
sentry cli upgrade
# Upgrade to a specific version
sentry cli upgrade 0.5.0
# Force re-download
sentry cli upgrade --force

Release Channels

Terminal window
# Switch to nightly builds
sentry cli upgrade nightly
# Switch back to stable
sentry cli upgrade stable

After switching, bare sentry cli upgrade will continue tracking that channel.

ChannelDescription
stableLatest stable release (default)
nightlyBuilt from main, updated on every commit

Installation Detection

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

MethodDetection
curlBinary in ~/.sentry/bin (installed via cli.sentry.dev)
brewBinary in a Homebrew Cellar (brew install getsentry/tools/sentry)
npmGlobally installed via npm install -g sentry
pnpmGlobally installed via pnpm add -g sentry
bunGlobally installed via bun install -g sentry

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

Send feedback

Terminal window
# Send positive feedback
sentry cli feedback i love this tool
# Report an issue
sentry cli feedback the issue view is confusing

Feedback is sent via Sentry's telemetry system. If telemetry is disabled (SENTRY_CLI_NO_TELEMETRY=1), feedback cannot be sent.

Fix configuration issues

Terminal window
sentry cli fix