« Back to Search  |  Reader Mode  |  Switch to Full Retro Site View Links: Stay in Reader  |  Retro Mode: ON  |  Original »
Sentry CLI · Extracted in 330 ms

The CLI for developers and agents

Source: https://cli.sentry.dev/

The CLI for developers and agents

No more flags. No more guessing. Just type what you mean and let the CLI figure out the rest. Built by humans and agents, for humans and agents. curl https://cli.sentry.dev/install -fsS | bash
Or read the documentation. Terminal $ sentry auth ● Opening browser for authentication... ✓ Authenticated as john@example.com $ sentry issue list Issues from 3 projects:
╭─────────┬───────┬───────────────┬────────┬──────┬────────────┬──────────────────────────────────────────╮
│ LEVEL   │ ALIAS │ SHORT ID      │ COUNT  │ SEEN │ FIXABILITY │ TITLE                                    │
├─────────┼───────┼───────────────┼────────┼──────┼────────────┼──────────────────────────────────────────┤
│ ERROR   │ f-79  │ FRONTEND-79   │   2.4k │   2h │        92% │ TypeError: Cannot read property 'map'... │
│ WARN    │ a-2f  │ API-2F        │    891 │   1d │        67% │ ReferenceError: user is not defined      │
│ ERROR   │ m-4d  │ MOBILE-4D     │    456 │   5d │        23% │ NetworkError: Failed to fetch            │
╰─────────┴───────┴───────────────┴────────┴──────┴────────────┴──────────────────────────────────────────╯
$ sentry issue explain f-79 Root Cause Analysis Complete ══════════════════════════════
Cause:
The userData response from /api/users returns null when user session expires, but the component assumes it's always an array and calls .map() directly. → Add null check before mapping: userData?.map()

It Knows Your Project

No config files. No flags. The CLI reads your .env, detects your project from the codebase, and just works. Monorepos, multiple orgs, complex setups -- all handled automatically.

Stop memorizing project slugs and DSNs. Start typing commands that make sense.

Terminal $ sentry issue list Detected project: my-app (from .env)
╭─────────┬────────────┬──────────────────────────────────────────┬───────╮
│ LEVEL   │ SHORT ID   │ TITLE                                    │ COUNT │
├─────────┼────────────┼──────────────────────────────────────────┼───────┤
│ ERROR   │ MYAPP-WQ   │ TypeError: Cannot read property 'map'... │   142 │
│ WARN    │ MYAPP-X3   │ Failed to fetch user data from API       │    89 │
│ ERROR   │ MYAPP-R7   │ Connection timeout after 30s             │    34 │
╰─────────┴────────────┴──────────────────────────────────────────┴───────╯

Ask Seer Why

Get AI-powered root cause analysis right in your terminal. Seer analyzes stack traces, related events, and your codebase to explain exactly what went wrong and why.

Then run sentry issue plan to get a step-by-step fix you can apply immediately.

Terminal $ sentry issue explain WQ Analyzing MYAPP-WQ... Root Cause: The user object is undefined when accessed before the auth check completes in useEffect. Affected: src/hooks/useUser.ts:42 Run sentry issue plan for a fix.

Works With Everything

Structured JSON output for scripts and pipelines. Open issues directly in your browser. Pipe to jq, fzf, or your favorite tools.

Built for humans and AI agents alike -- every command is predictable, composable, and automation-ready.

Terminal $ sentry org list --json | jq '.[0]' { "slug" : "my-org", "name" : "My Organization", "projects" : 12, "members" : 8 }