Logo vun Sentry Cli

Sentry Cli

Communautéit
pedronauck
sentry-cli

Guide for using the Sentry CLI to interact with Sentry from the command line. Use when the user asks about viewing issues, events, projects, organizations, making API calls, or authenticating with Sentry via CLI.

Iwwersiicht

Editeurpedronauck
Repositoryskills
Skill-Nummsentry-cli
Stären
635
Forks
89
Matgeliwwert Fichieren
36
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 36 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum pedronauck op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Sentry Cli an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/pedronauck/skills/tree/main/skills/curated/sentry-cli
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/pedronauck/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/curated/sentry-cli .claude/skills/sentry-cli
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Sentry Cli an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Sentry Cli automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Sentry Cli net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Sentry CLI Usage Guide

Help users interact with Sentry from the command line using the sentry CLI.

Core rule for agents: just run the command. The sentry CLI auto-detects your org and project (from .sentryclirc, DSNs in .env/source, and the directory name), so do not list organizations and then list their projects to work out which one this checkout maps to — that manual discovery only duplicates work the CLI already does on every command. Pass an explicit <org>/<project> only when the CLI reports it can't detect the target or picks the wrong one.

Agent Guidance

Best practices and operational guidance for AI coding agents using the Sentry CLI.

Key Principles

  • Just run the command — the CLI handles authentication and org/project detection automatically. Don't pre-authenticate or look up org/project before running commands. The CLI prompts for login if needed.
  • Prefer CLI commands over raw API calls — the CLI has dedicated commands for most tasks. Reach for sentry issue view, sentry issue list, sentry trace view, etc. before constructing API calls manually or fetching external documentation.
  • Use sentry docs for setup questions — if you need to know how to configure a Sentry SDK or feature, run sentry docs "your question" to query the documentation directly. This is faster and more accurate than fetching docs externally.
  • Use sentry schema to explore the API — if you need to discover API endpoints, run sentry schema to browse interactively or sentry schema <resource> to search. This is faster than fetching OpenAPI specs externally.
  • Use sentry issue view <id> to investigate issues — when asked about a specific issue (e.g., CLI-G5, PROJECT-123), use sentry issue view directly.
  • Use --json for machine-readable output — pipe through jq for filtering. Human-readable output includes formatting that is hard to parse.
  • The CLI auto-detects org/project — don't discover it yourself — most commands work without explicit targets by checking .sentryclirc config files, scanning for DSNs in .env files and source code, and matching directory names. Do not run sentry org list and then sentry project list to figure out which project this checkout belongs to — that manual fan-out just replicates the detection the CLI already runs on every command. Only specify <org>/<project> when the CLI reports it can't detect the target or detects the wrong one.

Design Principles

The sentry CLI follows conventions from well-known tools — if you're familiar with them, that knowledge transfers directly:

  • gh (GitHub CLI) conventions: The sentry CLI uses the same <noun> <verb> command pattern (e.g., sentry issue list, sentry org view). Flags follow gh conventions: --json for machine-readable output, --fields to select specific fields, -w/--web to open in browser, -q/--query for filtering, -n/--limit for result count.
  • sentry api mimics curl: The sentry api command provides direct API access with a curl-like interface — --method for HTTP method, --data for request body, --header for custom headers. It handles authentication automatically. If you know how to call a REST API with curl, the same patterns apply.

Context Window Tips

  • Use --json --fields to select specific fields and reduce output size. Run <command> --help to see available fields. Example: sentry issue list --json --fields shortId,title,priority,level,status
  • Use --json when piping output between commands or processing programmatically
  • Use --limit to cap the number of results (default is usually 10–100)
  • Prefer sentry issue view PROJECT-123 over listing and filtering manually
  • Use sentry api for endpoints not covered by dedicated commands

Safety Rules

  • Always confirm with the user before running destructive commands: project delete, trial start
  • For mutations, verify the org/project context looks correct in the command output before proceeding with further changes
  • Never store or log authentication tokens — the CLI manages credentials automatically
  • If the CLI reports the wrong org/project, override with explicit <org>/<project> arguments

Exit Codes

The CLI uses semantic exit codes. Key ranges for agents:

RangeMeaningAgent Action
0SuccessProceed normally
10–19Auth errorPrompt user to run sentry auth login
20–29Input errorCheck command arguments and retry
30–39API errorRetry or report to user
40–49Feature unavailableInform user about plan/settings
50–59Operation errorReport to user
60–69Command-specificCheck stderr for details

See Exit Codes for the complete reference.

Workflow Patterns

Investigate an Issue
bash
# 1. Find the issue (auto-detects org/project from DSN or config)
sentry issue list --query "is:unresolved" --limit 5

# 2. Get details. For agents, prefer --json — it includes the full issue plus
# the latest event under `event`, so you get everything in one call.
sentry issue view PROJECT-123 --json

# 3. Get AI root cause analysis
sentry issue explain PROJECT-123

# 4. Get a fix plan
sentry issue plan PROJECT-123

sentry issue view <SHORT-ID> --json is the fastest way to get an agent up to speed on an issue. Select just the fields you need with --fields instead of consuming the whole payload — the latest event's request entry can carry live session data (cookies, headers, body), so extract named fields rather than dumping the entire object:

bash
# Top-level issue fields
sentry issue view PROJECT-123 --json --fields shortId,title,culprit,count,userCount,permalink

# Named fields from the latest event — avoids pulling the full request/session blob
sentry issue view PROJECT-123 --json --fields event.id,event.title,event.dateCreated

# Just the request URL and method (not the whole request entry). Event data
# lives under event.entries[], each tagged with a `type` and `data` payload.
sentry issue view PROJECT-123 --json | jq '.event.entries[] | select(.type == "request") | .data | {url, method}'
Explore Traces and Performance
bash
# 1. List recent traces (auto-detects org/project)
sentry trace list --limit 5

# 2. View a specific trace with span tree
sentry trace view abc123def456...

# 3. View spans for a trace
sentry span list abc123def456...

# 4. View logs associated with a trace
sentry trace logs abc123def456...
Stream Logs
bash
# Stream logs in real-time (auto-detects org/project)
sentry log list --follow

# Filter logs by severity
sentry log list --query "severity:error"
Capture Events Locally (Spotlight)
bash
# Run the app with the local server auto-enabled; tail errors/traces/logs.
# No DSN needed — with no DSN, events go ONLY to the local server (nothing
# reaches the user's Sentry org, no production quota). With a DSN set, the
# SDK sends to both.
sentry local run -- npm run dev          # or: python manage.py runserver, etc.

# From a CLI source checkout, run the Local UI in a second terminal, then open it.
pnpm --filter local dev
sentry local run --open -- npm run dev

# Watch only AI/agent (gen_ai, mcp) spans while iterating on an agent.
sentry local -f ai

# Server-side SDKs read SENTRY_SPOTLIGHT automatically. The CLI also injects
# the URL under every framework client prefix (NEXT_PUBLIC_, VITE_, PUBLIC_,
# NUXT_PUBLIC_, REACT_APP_, VUE_APP_, GATSBY_). Until the browser SDK reads
# these automatically (getsentry/sentry-javascript#18198), reference the var
# matching your framework in the client config:
# Sentry.init({ spotlight: process.env.NEXT_PUBLIC_SENTRY_SPOTLIGHT ?? false })
Query Sentry Documentation
bash
# Ask a documentation question
sentry docs "How do I configure tracing in Next.js?"

# Search the documentation index
sentry docs list "source maps"
Check Sentry Service Status
bash
# Show current status of Sentry services
sentry status

# Machine-readable status
sentry status --json
Explore the API Schema
bash
# Browse all API resource categories
sentry schema

# Search for endpoints related to a resource
sentry schema issues

# Get details about a specific endpoint
sentry schema "GET /api/0/organizations/{organization_id_or_slug}/issues/"
Manage Releases
bash
# Create a release — version must match Sentry.init({ release }) exactly
sentry release create my-org/1.0.0 --project my-project

# Associate commits via repository integration (needs local git checkout)
sentry release set-commits my-org/1.0.0 --auto

# Or read commits from local git history (no integration needed)
sentry release set-commits my-org/1.0.0 --local

# Mark the release as finalized
sentry release finalize my-org/1.0.0

# Record a production deploy
sentry release deploy my-org/1.0.0 production

Key details:

  • The positional is <org-slug>/<version>. In sentry release create sentry/1.0.0, sentry is the org and 1.0.0 is the version — the slash separates org from version, it is not part of the version string.
  • The version must match the release value in Sentry.init(). If your SDK uses "1.0.0", the command must use org/1.0.0.
  • --auto requires a Sentry repository integration (GitHub/GitLab/Bitbucket) and a local git checkout. It matches your origin remote against Sentry's repo list. Without a checkout, use --local.
  • With no flag, set-commits tries --auto first and falls back to --local on failure.
Arbitrary API Access
bash
# GET request (default)
sentry api /api/0/organizations/my-org/

# POST request with data
sentry api /api/0/organizations/my-org/projects/ --method POST --data '{"name":"new-project","platform":"python"}'

Dashboard Layout

Sentry dashboards use a 6-column grid. When adding widgets, aim to fill complete rows (widths should sum to 6).

Display types with default sizes:

Display TypeWidthHeightCategoryNotes
big_number21commonCompact KPI — place 3 per row (2+2+2=6)
line32commonHalf-width chart — place 2 per row (3+3=6)
area32commonHalf-width chart — place 2 per row
bar32commonHalf-width chart — place 2 per row
table62commonFull-width — always takes its own row
stacked_area32specializedStacked area chart
top_n32specializedTop N ranked list
categorical_bar32specializedCategorical bar chart
text32specializedStatic text/markdown widget
details32internalDetail view
wheel32internalPie/wheel chart
rage_and_dead_clicks32internalRage/dead click visualization
server_tree32internalHierarchical tree display
agents_traces_table32internalAgents traces table

Use common types for general dashboards. Use specialized only when specifically requested. Avoid internal types unless the user explicitly asks.

Available datasets: spans (default), errors, metrics, issue, logs. Run sentry dashboard widget --help for dataset descriptions, query formats, and examples.

Row-filling examples:

bash
# 3 KPIs filling one row (2+2+2 = 6)
sentry dashboard widget add <dashboard> "Error Count" --display big_number --query count
sentry dashboard widget add <dashboard> "P95 Duration" --display big_number --query p95:span.duration
sentry dashboard widget add <dashboard> "Throughput" --display big_number --query epm

# 2 charts filling one row (3+3 = 6)
sentry dashboard widget add <dashboard> "Errors Over Time" --display line --query count
sentry dashboard widget add <dashboard> "Latency Over Time" --display line --query p95:span.duration

# Full-width table (6 = 6)
sentry dashboard widget add <dashboard> "Top Endpoints" --display table \
  --query count --query p95:span.duration \
  --group-by transaction --sort -count --limit 10

Quick Reference

Time filtering

Use --period (alias: -t) to filter by time window:

bash
sentry trace list --period 1h
sentry span list --period 24h
sentry span list -t 7d
Scoping to an org or project

Org and project are positional arguments following gh CLI conventions:

bash
sentry trace list my-org/my-project
sentry issue list my-org/my-project
sentry span list my-org/my-project/abc123def456...
Listing spans in a trace

Pass the trace ID as a positional argument to span list:

bash
sentry span list abc123def456...
sentry span list my-org/my-project/abc123def456...
Dataset names for the Events API

When querying the Events API (directly or via sentry api), valid dataset values are: spans, logs, errors, tracemetrics, profile_functions, and uptime_results.

Common Mistakes

  • Wrong issue ID format: Use PROJECT-123 (short ID), not the numeric ID 123456789. The short ID includes the project prefix.
  • Pre-authenticating unnecessarily: Don't run sentry auth login before every command. The CLI detects missing/expired auth and prompts automatically. Only run sentry auth login if you need to switch accounts.
  • Missing --json for piping: Human-readable output includes formatting. Use --json when parsing output programmatically.
  • Specifying org/project when not needed: Auto-detection resolves org/project from .sentryclirc config files, DSNs, env vars, and directory names. Let it work first — only add <org>/<project> if the CLI says it can't detect the target or detects the wrong one.
  • Manually discovering the project before running a command: Don't list the orgs you belong to, then list every project in each, to match the local checkout to a project — the CLI already does exactly this resolution internally on each command. Skip the fan-out and run the command directly; correct the target afterwards only if the output shows the wrong org/project.
  • Confusing --query syntax: The --query flag uses Sentry search syntax (e.g., is:unresolved, assigned:me), not free text search.
  • Not using --web: View commands support -w/--web to open the resource in the browser — useful for sharing links.
  • Fetching API schemas instead of using the CLI: Prefer sentry schema to browse the API and sentry api to make requests — the CLI handles authentication and endpoint resolution, so there's rarely a need to download OpenAPI specs separately.
  • Fetching Sentry docs externally: Use sentry docs "your question" to query Sentry's documentation from the CLI — this returns concise answers with source links, without needing to fetch or parse documentation pages.
  • Release version mismatch: The org/version positional is <org-slug>/<version>, where org/ is the org, not part of the version. sentry release create sentry/1.0.0 creates version 1.0.0 in org sentry. If your Sentry.init() uses release: "1.0.0", this is correct. Don't double-prefix like sentry/myapp/1.0.0.
  • Running set-commits --auto without a git checkout: --auto needs a local git repo to discover the origin remote URL and HEAD commit. In CI, ensure actions/checkout with fetch-depth: 0 runs before set-commits --auto.
  • Using sentry api when CLI commands suffice: sentry issue list --json and sentry issue view --json already include shortId, title, count, userCount, priority, level, status, permalink, and other fields at the top level. When using --fields to select specific fields like count or userCount, the CLI automatically ensures these fields are present in the API response. Use --fields to select specific fields and --help to see all available fields. Only fall back to sentry api for data the CLI doesn't expose.

Prerequisites

The CLI must be installed and authenticated before use.

Installation

bash
curl https://cli.sentry.dev/install -fsS | bash
curl https://cli.sentry.dev/install -fsS | bash -s -- --version nightly

# Or install via npm/pnpm/bun
npm install -g sentry

Authentication

bash
sentry auth
sentry auth --token YOUR_SENTRY_API_TOKEN
sentry auth status
sentry auth logout

Command Reference

Auth

Authenticate with Sentry

  • sentry auth login — Authenticate with Sentry
  • sentry auth logout — Log out of Sentry
  • sentry auth refresh — Refresh your OAuth access token
  • sentry auth status — View authentication status
  • sentry auth token — Print the stored authentication token
  • sentry auth whoami — Show the currently authenticated identity

→ Full flags and examples: references/auth.md

Org

Work with Sentry organizations

  • sentry org list — List organizations
  • sentry org view <org> — View details of an organization

→ Full flags and examples: references/org.md

Project

Work with Sentry projects

  • sentry project create [<org>/]<name>:<platform>... — Create one or more projects
  • sentry project delete <org/project> — Delete a project
  • sentry project list <org/project> — List projects
  • sentry project view <org/project> — View details of a project

→ Full flags and examples: references/project.md

Issue

Manage Sentry issues

  • sentry issue list <org/project> — List issues in a project
  • sentry issue events <issue> — List events for a specific issue
  • sentry issue explain <issue> — Analyze an issue's root cause using Seer AI
  • sentry issue plan <issue> — Generate a solution plan using Seer AI
  • sentry issue view <issue> — View details of a specific issue
  • sentry issue resolve <issue> — Mark an issue as resolved
  • sentry issue unresolve <issue> — Reopen a resolved issue
  • sentry issue archive <issue> — Archive (ignore) an issue
  • sentry issue merge <issue...> — Merge 2+ issues into a single canonical group

→ Full flags and examples: references/issue.md

Event

View, list, and send Sentry events

  • sentry event view <org/project/event-id...> — View details of one or more events
  • sentry event list <issue> — List events for an issue
  • sentry event send <args...> — Send a Sentry event

→ Full flags and examples: references/event.md

API

Make an authenticated API request

  • sentry api <endpoint> — Make an authenticated API request

→ Full flags and examples: references/api.md

Alert

Manage Sentry alert rules

  • sentry alert issues list <org/project> — List issue alert rules
  • sentry alert issues view <org/project/rule-id-or-name> — View an issue alert rule
  • sentry alert issues create <target> — Create an issue alert rule
  • sentry alert issues delete <org/project/rule-id-or-name> — Delete an issue alert rule
  • sentry alert issues edit <org/project/rule-id-or-name> — Edit an issue alert rule
  • sentry alert metrics list <target> — List metric alert rules
  • sentry alert metrics view <org/rule-id-or-name> — View a metric alert rule
  • sentry alert metrics create <org> — Create a metric alert rule
  • sentry alert metrics delete <org/rule-id-or-name> — Delete a metric alert rule
  • sentry alert metrics edit <org/rule-id-or-name> — Edit a metric alert rule

→ Full flags and examples: references/alert.md

Build

Manage mobile build artifacts

  • sentry build upload <path...> — Upload builds to a project
  • sentry build download <build-id> — Download a build artifact

→ Full flags and examples: references/build.md

CLI

CLI-related commands

  • sentry cli completion <shell> — Print the shell completion script
  • sentry cli defaults <key value...> — View and manage default settings
  • sentry cli feedback <message...> — Send feedback about the CLI
  • sentry cli fix — Diagnose and repair CLI database issues
  • sentry cli import — Import settings from legacy .sentryclirc files
  • sentry cli setup — Configure shell integration
  • sentry cli uninstall — Uninstall Sentry CLI
  • sentry cli upgrade <version> — Update the Sentry CLI to the latest version

→ Full flags and examples: references/cli.md

Code-mappings

Manage code mappings for stack trace linking

  • sentry code-mappings upload <path> — Upload code mappings for stack trace linking

→ Full flags and examples: references/code-mappings.md

Agent-conversation

List and view agent conversations

  • sentry agent-conversation list <org> — List recent agent conversations
  • sentry agent-conversation view <org/conversation-id> — View an agent conversation transcript

→ Full flags and examples: references/agent-conversation.md

Dart-symbol-map

Work with Dart/Flutter symbol maps

  • sentry dart-symbol-map upload <path> — Upload a Dart/Flutter symbol map to Sentry

→ Full flags and examples: references/dart-symbol-map.md

Debug-files

Work with debug information files

  • sentry debug-files check <path> — Inspect a debug information file
  • sentry debug-files find <id...> — Locate debug files for given debug identifiers
  • sentry debug-files upload <path...> — Upload debug information files to Sentry
  • sentry debug-files print-sources <path> — List the source files a debug file references
  • sentry debug-files bundle-sources <path> — Bundle a debug file's source files for source context
  • sentry debug-files bundle-jvm <path> — Create a JVM source bundle for source context

→ Full flags and examples: references/debug-files.md

Dashboard

Manage Sentry dashboards

  • sentry dashboard list <org/title-filter...> — List dashboards
  • sentry dashboard view <org/project/dashboard...> — View a dashboard
  • sentry dashboard create <org/project/title...> — Create a dashboard
  • sentry dashboard widget add <org/project/dashboard/title...> — Add a widget to a dashboard
  • sentry dashboard widget edit <org/project/dashboard...> — Edit a widget in a dashboard
  • sentry dashboard widget delete <org/project/dashboard...> — Delete a widget from a dashboard
  • sentry dashboard revisions <org/dashboard...> — List dashboard revisions
  • sentry dashboard restore <org/dashboard...> — Restore a dashboard revision

→ Full flags and examples: references/dashboard.md

Docs

Search and query current Sentry documentation

  • sentry docs list <keywords...> — Find Sentry documentation pages by keyword
  • sentry docs query <question...> — Ask a cited question about Sentry documentation

→ Full flags and examples: references/docs.md

Platform

List valid Sentry platform identifiers

  • sentry platform list — List all valid Sentry platform identifiers

→ Full flags and examples: references/platform.md

Proguard

Work with ProGuard/R8 mapping files

  • sentry proguard upload <path...> — Upload ProGuard/R8 mapping files to Sentry
  • sentry proguard uuid <path> — Compute the UUID for a ProGuard mapping file

→ Full flags and examples: references/proguard.md

React-native

Upload React Native sourcemaps from build steps

  • sentry react-native gradle — Upload a React Native bundle + sourcemap (Gradle build step)
  • sentry react-native xcode <script-arg...> — Upload React Native sourcemaps (Xcode build step)

→ Full flags and examples: references/react-native.md

Replay

Search and inspect Session Replays

  • sentry replay list <org/project> — List recent Session Replays
  • sentry replay view <replay-id-or-url...> — View a Session Replay

→ Full flags and examples: references/replay.md

Release

Work with Sentry releases

  • sentry release list <org/project> — List releases with adoption and health metrics
  • sentry release view <org/version> — View release details with health metrics
  • sentry release create <org/version> — Create a release
  • sentry release finalize <org/version> — Finalize a release
  • sentry release delete <org/version> — Delete a release
  • sentry release archive <org/version> — Archive a release
  • sentry release restore <org/version> — Restore an archived release
  • sentry release deploy <org/version> <environment> <name> — Create a deploy for a release
  • sentry release deploys <org/version> — List deploys for a release
  • sentry release set-commits <org/version> — Set commits for a release
  • sentry release propose-version — Propose a release version

→ Full flags and examples: references/release.md

Repo

Work with Sentry repositories

  • sentry repo list <org/project> — List repositories

→ Full flags and examples: references/repo.md

Team

Work with Sentry teams

  • sentry team list <org/project> — List teams

→ Full flags and examples: references/team.md

Explore

Query aggregate event data (Explore)

  • sentry explore <target> — Query aggregate event data (Explore)

→ Full flags and examples: references/explore.md

Feedback

Search and inspect User Feedback

  • sentry feedback list <org/project> — List and search User Feedback
  • sentry feedback view <feedback> — View a User Feedback item

→ Full flags and examples: references/feedback.md

Log

View Sentry logs

  • sentry log list <org/project-or-trace-id...> — List logs from a project
  • sentry log view <org/project/log-id...> — View details of one or more log entries

→ Full flags and examples: references/log.md

Monitor

Work with Sentry cron monitors

  • sentry monitor run <monitor-slug command...> — Wrap a command with cron monitor check-ins
  • sentry monitor list <org/project> — List cron monitors

→ Full flags and examples: references/monitor.md

Snapshots

Manage and compare snapshots

  • sentry snapshots diff <base-dir> <head-dir> — Compare two directories of snapshot images
  • sentry snapshots download — Download baseline snapshot images
  • sentry snapshots upload <path> — Upload snapshots to a project

→ Full flags and examples: references/snapshots.md

Sourcemap

Manage sourcemaps

  • sentry sourcemap inject <directory> — Inject debug IDs into JavaScript files and sourcemaps
  • sentry sourcemap upload <directory> — Upload sourcemaps to Sentry
  • sentry sourcemap resolve <directory> — Resolve and report sourcemap linkage for JavaScript files

→ Full flags and examples: references/sourcemap.md

Span

List and view spans in projects or traces

  • sentry span list <org/project/trace-id...> — List spans in a project or trace
  • sentry span view <trace-id/span-id...> — View details of specific spans

→ Full flags and examples: references/span.md

Status

Check Sentry service status

  • sentry status show — Show Sentry service status

→ Full flags and examples: references/status.md

Trace

View distributed traces

  • sentry trace list <org/project> — List recent traces in a project
  • sentry trace view <org/project/trace-id...> — View details of a specific trace
  • sentry trace logs <org/project/trace-id...> — View logs associated with a trace

→ Full flags and examples: references/trace.md

Trial

Manage product trials

  • sentry trial list <org> — List product trials
  • sentry trial start <name> <org> — Start a product trial

→ Full flags and examples: references/trial.md

Init

Initialize Sentry in your project (experimental)

  • sentry init <target> <directory> — Initialize Sentry in your project (experimental)

→ Full flags and examples: references/init.md

Info

Print configuration and verify authentication

  • sentry info — Print configuration and verify authentication

→ Full flags and examples: references/info.md

Local

Sentry for local development

  • sentry local serve — Start the local dev server and tail events
  • sentry local run <command...> — Run a command with the local dev server enabled

→ Full flags and examples: references/local.md

Schema

Browse the Sentry API schema

  • sentry schema <resource...> — Browse the Sentry API schema

→ Full flags and examples: references/schema.md

Global Options

All commands support the following global options:

  • --help - Show help for the command
  • --version - Show CLI version
  • --log-level <level> - Set log verbosity (error, warn, log, info, debug, trace). Overrides SENTRY_LOG_LEVEL
  • --verbose - Shorthand for --log-level debug

Output Formats

JSON Output

Most list and view commands support --json flag for JSON output, making it easy to integrate with other tools:

bash
sentry org list --json | jq '.[] | .slug'

Opening in Browser

View commands support -w or --web flag to open the resource in your browser:

bash
sentry issue view PROJ-123 -w

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Sentry Cli?

Guide for using the Sentry CLI to interact with Sentry from the command line. Use when the user asks about viewing issues, events, projects, organizations, making API calls, or authenticating with Sentry via CLI.

Firwat Sentry Cli op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Sentry Cli besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Sentry Cli an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/pedronauck/skills/tree/main/skills/curated/sentry-cli an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Sentry Cli benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Sentry Cli benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Sentry Cli domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Sentry Cli gratis?

De Skill gëtt vum pedronauck op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇