Welcome to Sentry CLI
The command-line interface for Sentry with AI-powered debugging, DSN auto-detection, and monorepo support. Built for developers and AI agents.Installation
Install via curl, Homebrew, npm, or run without installing
Quick Start
Get up and running in minutes with authentication and your first commands
Command Reference
Explore all available commands and their options
AI Debugging
Get AI-powered root cause analysis and fix plans with Seer
Key Features
DSN Auto-Detection
Automatically detects your Sentry project from
.env files and source code. No flags needed.AI-Powered Analysis
Get instant root cause analysis and fix plans for issues using Sentry’s Seer AI.
Monorepo Support
Works seamlessly with monorepos, generating short aliases for easy project navigation.
JSON Output
All commands support
--json for scripting, pipelines, and AI agent integrations.Multi-Region API
Automatic detection and routing to regional Sentry APIs (US, EU, etc.).
Fast & Cached
SQLite-based caching for lightning-fast API responses and offline access.
Quick Example
Popular Commands
Auth
Manage authentication with OAuth device flow
Issues
List, view, and debug issues with AI assistance
Projects
List and manage your Sentry projects
Organizations
View and manage organizations
API Access
Make direct API requests with automatic authentication
CLI Setup
Configure shell completions and AI agent skills
Advanced Use Cases
CI/CD Integration
Automate Sentry workflows in your CI/CD pipeline
Scripting
Build automation scripts with JSON output
AI Agents
Integrate Sentry CLI with AI coding agents
Self-Hosted
Configure for self-hosted Sentry instances