
Sentry Cli
- 107 repo stars
- Updated August 4, 2026
- getsentry/cli
Authenticate with Sentry
About
Authenticate with Sentry. curl https://cli.sentry.dev/install -fsS | bash brew install getsentry/tools/sentry Covers setup, configuration, and when-to-use guidance from upstream documentation for plugins/sentry-cli.
- **DSN Auto-Detection** - Automatically detects your project from `.env` files or source code. No flags needed.
- **Seer AI Integration** - Get root cause analysis and fix plans directly in your terminal.
- **Monorepo Support** - Works with multiple projects, generates short aliases for easy navigation.
- **JSON Output** - All commands support `--json` for scripting and pipelines.
- **Open in Browser** - Use `-w` flag to open any resource in your browser.
Sentry Cli by the numbers
- Data as of Aug 5, 2026 (Skillselion catalog sync)
sentry-cli capabilities & compatibility
- Capabilities
- plugins/sentry cli quick start · plugins/sentry cli when to use guidance · plugins/sentry cli integration patterns
- Use cases
- code review
/plugin marketplace add getsentry/cli/plugin install sentry-cli@sentry-cliAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| repo stars | ★ 107 |
|---|---|
| Last updated | August 4, 2026 |
| Repository | getsentry/cli ↗ |
How do I use plugins/sentry-cli correctly?
Authenticate with Sentry
Who is it for?
Teams implementing plugins/sentry-cli workflows from the catalog.
Skip if: Skip when requirements clearly match a different specialized stack.
When should I use this skill?
User asks about plugins/sentry-cli, authenticate with sentry.
What you get
Working plugins/sentry-cli setup with validated configuration and next steps.
README.md
The command-line interface for Sentry. Built for developers and AI agents.
Documentation | Getting Started | Commands
Installation
Install Script (Recommended)
curl https://cli.sentry.dev/install -fsS | bash
Homebrew
brew install getsentry/tools/sentry
Package Managers
npm install -g sentry
pnpm add -g sentry
yarn global add sentry
bun add -g sentry
The npm/pnpm/yarn packages require Node.js 22.15+.
Run Without Installing
npx sentry@latest
pnpm dlx sentry --help
yarn dlx sentry --help
bunx sentry --help
Quick Start
# Authenticate with Sentry
sentry auth login
# List issues (auto-detects project from your codebase)
sentry issue list
# Get AI-powered root cause analysis
sentry issue explain PROJ-ABC
# Generate a fix plan
sentry issue plan PROJ-ABC
Features
- DSN Auto-Detection - Automatically detects your project from
.envfiles or source code. No flags needed. - Seer AI Integration - Get root cause analysis and fix plans directly in your terminal.
- Monorepo Support - Works with multiple projects, generates short aliases for easy navigation.
- JSON Output - All commands support
--jsonfor scripting and pipelines. - Open in Browser - Use
-wflag to open any resource in your browser.
Commands
Run sentry --help to see all available commands, or browse the command reference.
Configuration
Credentials are stored in ~/.sentry/ with restricted permissions (mode 600).
Library Usage
Use Sentry CLI programmatically in Node.js (≥22.15) without spawning a subprocess:
import createSentrySDK from "sentry";
const sdk = createSentrySDK({ token: "sntrys_..." });
// Typed methods for every CLI command
const orgs = await sdk.org.list();
const issues = await sdk.issue.list({ orgProject: "acme/frontend", limit: 5 });
const issue = await sdk.issue.view({ issue: "ACME-123" });
// Nested commands
await sdk.dashboard.widget.add({ display: "line", query: "count" }, "my-org/my-dashboard");
// Escape hatch for any CLI command
const version = await sdk.run("--version");
const text = await sdk.run("issue", "list", "-l", "5");
Options (all optional):
token— Auth token. Falls back toSENTRY_AUTH_TOKEN/SENTRY_TOKENenv vars.url— Sentry instance URL for self-hosted (e.g.,"sentry.example.com").org— Default organization slug (avoids passing it on every call).project— Default project slug.text— Return human-readable string instead of parsed JSON (affectsrun()only).cwd— Working directory for DSN auto-detection. Defaults toprocess.cwd().signal—AbortSignalto cancel streaming commands (--follow,--refresh).
Streaming commands return AsyncIterable — use for await...of and break to stop.
Errors are thrown as SentryError with .exitCode and .stderr.
Development
Prerequisites
Setup
git clone https://github.com/getsentry/cli.git
cd cli
pnpm install
Running Locally
# Run CLI in development mode
pnpm run cli -- --help
# With environment variables (create .env.local first, see DEVELOPMENT.md)
pnpm run cli -- --help
Scripts
pnpm run build # Build for current platform
pnpm run typecheck # Type checking
pnpm run lint # Check for issues
pnpm run lint:fix # Auto-fix issues
pnpm run test:unit # Run unit tests
pnpm run test:e2e # Run end-to-end tests
pnpm run generate:docs # Regenerate command docs and skills
See DEVELOPMENT.md for detailed setup and CONTRIBUTING.md for contribution guidelines.
License
Related skills
FAQ
What does plugins/sentry-cli do?
Authenticate with Sentry
When should I use plugins/sentry-cli?
User asks about plugins/sentry-cli, authenticate with sentry.
Is this skill safe to install?
Review the Security Audits panel on this page before installing in production.