Skip to content
Back to skills

Sentry Cli

ASecurity

Guide for using the Sentry CLI to inspect issues, events, traces, spans, logs, projects, organizations, releases, dashboards, and API resources. Use whenever a task needs Sentry data or Sentry CLI authentication, targeting, troubleshooting, or mutations; prefer dedicated CLI commands before raw API calls.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 17, 2026
ai-agentsbashreactgitapidatabaseperformance

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned October 17, 2026

npx -y skills add NguyenHuy190303/EEP --skill sentry-cli --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sentry Cli?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sentry Cli
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nguyenhuy190303-sentry-cli/badge)](https://www.skillsdirectory.com/skills/nguyenhuy190303-sentry-cli)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sentry-cli
version: 0.42.2
description: Guide for using the Sentry CLI to inspect issues, events, traces, spans, logs, projects, organizations, releases, dashboards, and API resources. Use whenever a task needs Sentry data or Sentry CLI authentication, targeting, troubleshooting, or mutations; prefer dedicated CLI commands before raw API calls.
requires:
  bins: ["sentry"]
  auth: true
---

# Sentry CLI

Use the `sentry` CLI directly. It normally detects authentication, organization, and project from
the working directory; add explicit targets only when detection fails or selects the wrong scope.

## Operating rules

- Prefer a dedicated command such as `sentry issue view`, `sentry trace view`, or
  `sentry log list` before `sentry api`.
- Use `sentry schema` to discover API resources and endpoints.
- Use `--json --fields ...` for machine-readable, bounded output and `--limit` for lists.
- Run `<command> --help` before inventing a flag or field.
- Verify the selected organization/project before a mutation.
- Never print, copy, or persist authentication tokens. Let the CLI manage credentials.
- Get user confirmation immediately before destructive commands such as `project delete` or
  starting a trial.

Exit-code ranges: 10–19 auth, 20–29 input, 30–39 API, 40–49 unavailable feature, 50–59 operation,
and 60–69 command-specific. Read stderr before deciding whether to retry.

## Common workflows

### Investigate an issue

```bash
sentry issue list --query "is:unresolved" --limit 5
sentry issue view PROJECT-123
sentry issue explain PROJECT-123
sentry issue plan PROJECT-123
```

Use the short issue ID (`PROJECT-123`), not the numeric database ID.

### Trace performance and logs

```bash
sentry trace list --period 1h --limit 5
sentry trace view <trace-id>
sentry span list <trace-id>
sentry trace logs <trace-id>
sentry log list --query "severity:error"
```

### Capture events locally

```bash
sentry local run -- npm run dev
sentry local -f ai
```

Without a DSN, Spotlight events stay local. With a DSN, verify the actual SDK configuration before
making privacy or quota claims.

### Manage a release

```bash
sentry release create <org>/<version> --project <project>
sentry release set-commits <org>/<version> --auto
sentry release finalize <org>/<version>
sentry release deploy <org>/<version> production
```

The positional value is `<org-slug>/<version>` and the version must match `Sentry.init({ release })`.
`--auto` needs a repository integration and a full local Git checkout; use `--local` when that is
the intended source of commit history.

### Use an uncovered API

```bash
sentry schema <resource>
sentry api /api/0/organizations/<org>/
```

Use `sentry api` only after confirming that a dedicated command does not expose the needed data.

## Load references progressively

Read only the file matching the requested command family:

- Identity and scope: `references/auth.md`, `references/org.md`, `references/project.md`,
  `references/team.md`.
- Investigation: `references/issue.md`, `references/event.md`, `references/trace.md`,
  `references/span.md`, `references/log.md`, `references/replay.md`, `references/feedback.md`.
- Delivery: `references/release.md`, `references/build.md`, `references/sourcemap.md`,
  `references/debug-files.md`, `references/proguard.md`, `references/dart-symbol-map.md`,
  `references/react-native.md`, `references/code-mappings.md`.
- Operations: `references/alert.md`, `references/monitor.md`, `references/dashboard.md`,
  `references/snapshots.md`.
- Discovery and advanced use: `references/schema.md`, `references/api.md`,
  `references/explore.md`, `references/platform.md`, `references/info.md`, `references/init.md`,
  `references/cli.md`, `references/local.md`, `references/conversation.md`, `references/repo.md`,
  `references/trial.md`.

When a reference and live `--help` output disagree, treat the installed CLI as the source of truth
and report the version observed.

## Output contract

Lead with the requested result. Include the exact command, target scope, and material limitations
when they support the conclusion. Do not claim a Sentry state changed unless output confirmed it.

Files in this skill

  • SKILL.md4.1 KB
  • references/alert.md6.6 KB
  • references/api.md2 KB
  • references/auth.md2.5 KB
  • references/build.md2.5 KB
  • references/cli.md4.2 KB
  • references/code-mappings.md1018 B
  • references/conversation.md2 KB
  • references/dart-symbol-map.md965 B
  • references/dashboard.md6.3 KB
  • references/debug-files.md4.4 KB
  • references/event.md4.9 KB
  • references/explore.md3.1 KB
  • references/feedback.md5 KB
  • references/info.md867 B
  • references/init.md1.5 KB
  • references/issue.md10.6 KB
  • references/local.md1.9 KB
  • references/log.md2.3 KB
  • references/monitor.md2.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.