Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Sentry CLI

$ sentry-cli Official Med Risk
Sentry · Code & DevOps · BSD-3-Clause · macos / linux / windows

Official 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.

FCRS-1.0 Score
83 /100
Good
Medium Confidence
Zero-Friction Install
brew install getsentry/tools/sentry-cli
CLI vs MCP Decision Hybrid (CLI + MCP)

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

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 18 / 25

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_TOKEN and SENTRY_ORG
  • Lacks universal --json across list/release subcommands
Trust & Safety 21 / 25

Scoped API token auth and read-only diagnostic commands like info, difutil check, and sourcemaps explain.

  • Supports scoped SENTRY_AUTH_TOKEN permissions
Setup & Portability 14 / 15

Fast Rust binary distributed via Homebrew, npm wrapper, and GitHub Releases across macOS, Linux, and Windows.

  • Standalone Rust binary across major platforms
Utility & Efficiency 13 / 15

Essential for sourcemap/dSYM debugging and release pipelines, though issue querying is better served by Sentry API/MCP.

  • Handles sourcemaps inject, upload, and difutil cleanly
Maintenance & Lineage 9 / 10

Official Sentry tool under BSD-3-Clause with continuous releases.

  • First-party getsentry/sentry-cli repository
Docs & Verifiability 8 / 10

Clear CLI docs at docs.sentry.io/cli/ and helpful subcommand --help.

  • Official reference at docs.sentry.io/cli/

Security, Auth & Guardrails

Auth Modes
Env API Key OAuth Browser Config File
Credential Storage

Reads SENTRY_AUTH_TOKEN from environment variables or ~/.sentryclirc config files.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

BSD-3-Clause open-source Rust CLI; Sentry error/replay ingestion quotas depend on your Sentry plan.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Verify Sentry CLI auth and configuration
sentry-cli info

Prints active Sentry server URL, auth status, org, and project defaults without mutating remote state.

Validate local sourcemaps before upload
sentry-cli sourcemaps explain <event-id>

Diagnoses why sourcemaps failed to symbolicate for a given event.

Controlled Writes & Previews

Create a release non-interactively
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, and SENTRY_PROJECT env configuration.
  • + sentry-cli sourcemaps explain and difutil check diagnose symbolication issues locally.
  • + SENTRY_NO_PROGRESS_BAR=1 keeps 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.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI