sentry-cli

Originally fromgetsentry/cli
Installation
Summary

Command-line interface for querying and managing Sentry issues, projects, organizations, and distributed traces.

  • Supports 15+ command categories: authentication, organizations, projects, issues, events, dashboards, repositories, teams, logs, spans, traces, and API calls
  • Includes AI-powered issue analysis via sentry issue explain and sentry issue plan using Seer AI
  • Offers JSON output for all major commands, enabling easy integration with scripts and tools
  • Provides flexible project targeting: auto-detect from DSN, explicit org/project paths, or search across accessible organizations
SKILL.md

Sentry CLI Usage Guide

Help users interact with Sentry from the command line using the sentry CLI.

Agent Guidance

Best practices and operational guidance for AI coding agents using the Sentry CLI.

Key Principles

  • Just run the command — the CLI handles authentication and org/project detection automatically. Don't pre-authenticate or look up org/project before running commands. If auth is needed, the CLI prompts interactively.
  • Prefer CLI commands over raw API calls — the CLI has dedicated commands for most tasks. Reach for sentry issue view, sentry issue list, sentry trace view, etc. before constructing API calls manually or fetching external documentation.
  • Use sentry schema to explore the API — if you need to discover API endpoints, run sentry schema to browse interactively or sentry schema <resource> to search. This is faster than fetching OpenAPI specs externally.
  • 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.
  • The CLI auto-detects org/project — most commands work without explicit targets by checking .sentryclirc config files, scanning for DSNs in .env files and source code, and matching directory names. Only specify <org>/<project> when the CLI reports it can't detect the target or detects the wrong one.

Design Principles

Installs
42.7K
First Seen
Feb 28, 2026