sentry-cli
Guide for using the Sentry CLI from the command line
- License 许可
- MIT
- 所属仓库
- HigorAlves/orc
- 最近更新
- 2026-11-07
- Stars
- ★ 7
- Forks
- 0
01 前言 Front Matter
- name
- sentry-cli
- version
- 0.30.0
- requires
- { "auth": true, "bins": [ "sentry" ] }
- description
- Guide for using the Sentry CLI from the command line
- when_to_use
- Use when viewing issues, events, projects, traces, dashboards, releases, making API calls, or authenticating with Sentry via CLI.
02 资源文件 21
- 参考文档references/agent-guidance.md9.5 KB
- 参考文档references/api.md1.9 KB
- 参考文档references/auth.md1.8 KB
- 参考文档references/cli.md2.3 KB
- 参考文档references/dashboard.md7.7 KB
- 参考文档references/event.md2.6 KB
- 参考文档references/explore.md2.4 KB
- 参考文档references/init.md1.2 KB
- 参考文档references/issue.md7.3 KB
- 参考文档references/log.md2.2 KB
- 参考文档references/org.md867 B
- 参考文档references/project.md2.0 KB
- 参考文档references/release.md4.3 KB
- 参考文档references/repo.md1.3 KB
- 参考文档references/schema.md762 B
- 参考文档references/setup.md1.3 KB
- 参考文档references/sourcemap.md1.6 KB
- 参考文档references/span.md2.7 KB
- 参考文档references/team.md1.1 KB
- 参考文档references/trace.md3.4 KB
- 参考文档references/trial.md1.1 KB
03 SKILL.md 正文
Sentry CLI Usage Guide
Help users interact with Sentry from the command line using the sentry CLI. This SKILL.md is a thin index — Read the relevant references/*.md file when you need that detail.
When to use
Reach for this skill whenever the user wants to investigate or manage Sentry from the terminal: viewing/triaging issues and events, exploring traces, spans, and logs, building dashboards, managing releases and deploys, making authenticated API calls, or authenticating the CLI.
How to work
- Just run the command — the CLI auto-handles auth and org/project detection. Don't pre-authenticate or look up org/project first.
- Prefer dedicated CLI commands over raw
sentry apicalls or fetching external docs. - Use
--jsonfor machine-readable output; pipe throughjq. - Read
references/agent-guidance.mdfirst for the operational best-practices, exit codes, workflow patterns, quick reference, and common mistakes — it is the most important file for agents.
Decision tree
- New to the CLI / need to install or authenticate →
references/setup.md,references/auth.md - Operating as an agent (principles, exit codes, workflows, gotchas) →
references/agent-guidance.md - Investigating an error/issue →
references/issue.md,references/event.md - Performance / distributed tracing →
references/trace.md,references/span.md,references/explore.md - Logs →
references/log.md - Dashboards & widgets (incl. 6-column grid layout) →
references/dashboard.md - Releases, deploys, commits →
references/release.md,references/sourcemap.md - Org / project / team / repo management →
references/org.md,references/project.md,references/team.md,references/repo.md - Raw API access / schema discovery →
references/api.md,references/schema.md - Trials, CLI maintenance, project init →
references/trial.md,references/cli.md,references/init.md
Topic index
| Topic | What's there | Reference |
|---|---|---|
| Agent guidance | Key/design principles, context tips, safety rules, exit codes, workflow patterns, quick reference, common mistakes | references/agent-guidance.md |
| Setup | Install, authenticate, global options, output formats (--json, --web) |
references/setup.md |
| Auth | sentry auth login/logout/refresh/status/token/whoami |
references/auth.md |
| Org | sentry org list/view |
references/org.md |
| Project | sentry project create/delete/list/view |
references/project.md |
| Team | sentry team list |
references/team.md |
| Repo | sentry repo list |
references/repo.md |
| Issue | sentry issue list/events/explain/plan/view/resolve/unresolve/merge |
references/issue.md |
| Event | sentry event view/list |
references/event.md |
| Trace | sentry trace list/view/logs |
references/trace.md |
| Span | sentry span list/view |
references/span.md |
| Explore | sentry explore (aggregate event data) |
references/explore.md |
| Log | sentry log list/view (incl. --follow) |
references/log.md |
| Dashboard | sentry dashboard list/view/create, widget add/edit/delete, 6-column grid layout |
references/dashboard.md |
| Release | sentry release list/view/create/finalize/delete/deploy/deploys/set-commits/propose-version |
references/release.md |
| Sourcemap | sentry sourcemap inject/upload |
references/sourcemap.md |
| API | sentry api <endpoint> (curl-like authenticated requests) |
references/api.md |
| Schema | sentry schema <resource...> (browse the API schema) |
references/schema.md |
| Trial | sentry trial list/start |
references/trial.md |
| CLI | sentry cli defaults/feedback/fix/setup/upgrade |
references/cli.md |
| Init | sentry init (experimental project setup) |
references/init.md |
Each command reference lists full flags and runnable examples. All commands also support --json, --fields, --help, --log-level, and --verbose.
04 同仓库更多 Skills
writing-plans
Write a comprehensive implementation plan of bite-sized TDD tasks that an engineer with zero codebase context could execute — exact files, code, tests, and verification steps
writing-for-agents
orc's doctrine layer for writing any document an agent consumes — skills, AGENTS.md/CLAUDE.md, reference docs
workspace-mode
Use when cwd is a parent dir holding multiple sibling git repos — defines repo auto-detection, --repos/--repo/--all-repos/--this-repo precedence, per-repo dispatch, and linked-PR mechanics.
wizard
Generate an interactive bash wizard walking a human through work only they can perform — credentials, secrets, one-off migrations
wait-what
Stop and re-pitch — the last message did not land; say it again simply, in the project's own vocabulary.
vitest
Vitest fast unit testing framework powered by Vite with Jest-compatible API