sentry-cli
Command-line interface for querying and managing Sentry issues, projects, organizations, and distributed traces.
What it does
- Use sentry issue view <id> to investigate issues — when asked about a specific issue (e.g., CLI-G5, PROJECT-123), use sentry issue view directly.
- Use --json for machine-readable output — pipe through jq for filtering. Human-readable output includes formatting that is hard to parse.
- Use --json when piping output between commands or processing programmatically
- Use --limit to cap the number of results (default is usually 10–100)
- Prefer sentry issue view PROJECT-123 over listing and filtering manually
- Use sentry api for endpoints not covered by dedicated commands
- Always confirm with the user before running destructive commands: project delete, trial start
Requirements & configuration
- Associate commits via repository integration (needs local git checkout)
- --auto requires a Sentry repository integration (GitHub/GitLab/Bitbucket) and a local git checkout. It matches your origin remote against Sentry's repo list. Without a checkout, use --local.
- sentry auth login --token YOURSENTRYAPITOKEN
- sentry auth refresh — Refresh your authentication token
- sentry auth token — Print the stored authentication token
Configuration: PROJECTSENTRY_LOG_LEVEL
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
Command-line interface for querying and managing Sentry issues, projects, organizations, and distributed traces.
Source
Repository: https://github.com/sentry/dev
sentry-cli FAQ
What does the sentry-cli skill do?
Guide for using the Sentry CLI to interact with Sentry from the command line. Use when the user asks about viewing issues, events, projects, organizations, making API calls, or authenticating with Sentry via CLI. Use sentry issue view <id> to investigate issues — when asked about a specific issue (e.g., CLI-G5, PROJECT-123), use sentry issue view directly. Use --json for machine-readable output — pipe through jq for filtering. Human-readable output includes formatting that is hard to parse.
What does sentry-cli require?
Associate commits via repository integration (needs local git checkout) --auto requires a Sentry repository integration (GitHub/GitLab/Bitbucket) and a local git checkout. It matches your origin remote against Sentry's repo list. Without a checkout, use --local. sentry auth login --token YOURSENTRYAPITOKEN sentry auth refresh — Refresh your authentication token sentry auth token — Print the stored authentication token Configuration keys: PROJECT, SENTRY_LOG_LEVEL.
How do I install sentry-cli?
Run: npx -y skills add https://github.com/sentry/dev --skill sentry-cli --agent claude-code — the source lives at github.com/sentry/dev.
Maintain sentry-cli?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[](https://getagentictools.com/skills/sentry-dev-sentry-cli?ref=badge) npx agentictools info skills/sentry-dev-sentry-cli The second line is the CLI lookup for this page — handy in READMEs and docs.