Sentry CLI
$ sentry-cli Official Med RiskOfficial command-line tool for managing Sentry releases, uploading JavaScript sourcemaps, validating debug symbol files (dSYMs/ProGuard), and inspecting project metadata. Configured cleanly via SENTRY_AUTH_TOKEN, SENTRY_ORG, and SENTRY_PROJECT environment variables.
brew install getsentry/tools/sentry-cli Use sentry-cli for local sourcemap injection, debug-file validation, and release artifact uploads; use Sentry MCP or API for querying live error issues and stacktraces.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Headless env-var driven (SENTRY_AUTH_TOKEN, SENTRY_NO_PROGRESS_BAR=1), though most commands emit human-readable tables rather than --json.
- Configured cleanly via
SENTRY_AUTH_TOKENandSENTRY_ORG - Lacks universal
--jsonacross list/release subcommands
Scoped API token auth and read-only diagnostic commands like info, difutil check, and sourcemaps explain.
- Supports scoped
SENTRY_AUTH_TOKENpermissions
Fast Rust binary distributed via Homebrew, npm wrapper, and GitHub Releases across macOS, Linux, and Windows.
- Standalone Rust binary across major platforms
Essential for sourcemap/dSYM debugging and release pipelines, though issue querying is better served by Sentry API/MCP.
- Handles
sourcemaps inject,upload, anddifutilcleanly
Official Sentry tool under BSD-3-Clause with continuous releases.
- First-party
getsentry/sentry-clirepository
Clear CLI docs at docs.sentry.io/cli/ and helpful subcommand --help.
- Official reference at docs.sentry.io/cli/
Security, Auth & Guardrails
Reads SENTRY_AUTH_TOKEN from environment variables or ~/.sentryclirc config files.
BSD-3-Clause open-source Rust CLI; Sentry error/replay ingestion quotas depend on your Sentry plan.
# Sentry CLI (sentry-cli) Agent Rules - Set `SENTRY_NO_PROGRESS_BAR=1` and `NO_COLOR=1` in agent environments. - Verify configuration with `sentry-cli info` before uploading sourcemaps or creating releases.
Agent-Ready Command Recipes
Safe Read-Only Queries
sentry-cli info
Prints active Sentry server URL, auth status, org, and project defaults without mutating remote state.
sentry-cli sourcemaps explain <event-id>
Diagnoses why sourcemaps failed to symbolicate for a given event.
Controlled Writes & Previews
sentry-cli releases new 1.0.0 --finalize
Registers and finalizes release 1.0.0 using SENTRY_ORG and SENTRY_PROJECT.
Strengths for Agents
- + Fast Rust binary with clean
SENTRY_AUTH_TOKEN,SENTRY_ORG, andSENTRY_PROJECTenv configuration. - +
sentry-cli sourcemaps explainanddifutil checkdiagnose symbolication issues locally. - +
SENTRY_NO_PROGRESS_BAR=1keeps CI and agent logs clean.
Caveats & Pitfalls
- ! Most commands output plain text or tables rather than JSON.
- ! Focused on releases, sourcemaps, and debug files—not querying Sentry issues/events.