
Sentry Cli
- 1 installs
- Updated May 6, 2026
- cometjc/floatig-hr-training
This is a copy of sentry-cli by sentry - installs and ranking accrue to the original listing.
Helps with ai & agent building tasks.
About
sentry-cli is a Claude Code skill for ai & agent building. It helps developers move faster with AI-assisted coding.
- sentry-cli
- AI & Agent Building
- AI-coding skill
Sentry Cli by the numbers
- 1 all-time installs (skills.sh)
- Data as of Jul 7, 2026 (Skillselion catalog sync)
npx skills add https://github.com/cometjc/floatig-hr-training --skill sentry-cliAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 1 |
|---|---|
| Last updated | May 6, 2026 |
| Repository | cometjc/floatig-hr-training ↗ |
What it does
Helps with ai & agent building tasks.
Files
Sentry CLI Usage Guide
Help users interact with Sentry from the command line using the sentry CLI.
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. If auth is needed, the CLI prompts interactively.
- 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 schema` to explore the API — if you need to discover API endpoints, run
sentry schemato browse interactively orsentry 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), usesentry issue viewdirectly. - Use `--json` for machine-readable output — pipe through
jqfor filtering. Human-readable output includes formatting that is hard to parse. - The CLI auto-detects org/project — most commands work without explicit targets by checking
.sentryclircconfig files, scanning for DSNs in.envfiles and source code, and matching directory names. 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
sentryCLI uses the same<noun> <verb>command pattern (e.g.,sentry issue list,sentry org view). Flags followghconventions:--jsonfor machine-readable output,--fieldsto select specific fields,-w/--webto open in browser,-q/--queryfor filtering,-n/--limitfor result count. - `sentry api` mimics `curl`: The
sentry apicommand provides direct API access with acurl-like interface —--methodfor HTTP method,--datafor request body,--headerfor custom headers. It handles authentication automatically. If you know how to call a REST API withcurl, the same patterns apply.
Context Window Tips
- Use
--json --fieldsto select specific fields and reduce output size. Run<command> --helpto see available fields. Example:sentry issue list --json --fields shortId,title,priority,level,status - Use
--jsonwhen piping output between commands or processing programmatically - Use
--limitto cap the number of results (default is usually 10–100) - Prefer
sentry issue view PROJECT-123over listing and filtering manually - Use
sentry apifor 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
Workflow Patterns
Investigate an Issue
# 1. Find the issue (auto-detects org/project from DSN or config)
sentry issue list --query "is:unresolved" --limit 5
# 2. Get details
sentry issue view PROJECT-123
# 3. Get AI root cause analysis
sentry issue explain PROJECT-123
# 4. Get a fix plan
sentry issue plan PROJECT-123Explore Traces and Performance
# 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
# Stream logs in real-time (auto-detects org/project)
sentry log list --follow
# Filter logs by severity
sentry log list --query "severity:error"Explore the API Schema
# 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
# 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 productionKey details:
- The positional is
<org-slug>/<version>. Insentry release create sentry/1.0.0,sentryis the org and1.0.0is the version — the slash separates org from version, it is not part of the version string. - The version must match the
releasevalue inSentry.init(). If your SDK uses"1.0.0", the command must useorg/1.0.0. --autorequires a Sentry repository integration (GitHub/GitLab/Bitbucket) and a local git checkout. It matches youroriginremote against Sentry's repo list. Without a checkout, use--local.- With no flag,
set-commitstries--autofirst and falls back to--localon failure.
Arbitrary API Access
# 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 Type | Width | Height | Category | Notes |
|---|---|---|---|---|
big_number | 2 | 1 | common | Compact KPI — place 3 per row (2+2+2=6) |
line | 3 | 2 | common | Half-width chart — place 2 per row (3+3=6) |
area | 3 | 2 | common | Half-width chart — place 2 per row |
bar | 3 | 2 | common | Half-width chart — place 2 per row |
table | 6 | 2 | common | Full-width — always takes its own row |
stacked_area | 3 | 2 | specialized | Stacked area chart |
top_n | 3 | 2 | specialized | Top N ranked list |
categorical_bar | 3 | 2 | specialized | Categorical bar chart |
text | 3 | 2 | specialized | Static text/markdown widget |
details | 3 | 2 | internal | Detail view |
wheel | 3 | 2 | internal | Pie/wheel chart |
rage_and_dead_clicks | 3 | 2 | internal | Rage/dead click visualization |
server_tree | 3 | 2 | internal | Hierarchical tree display |
agents_traces_table | 3 | 2 | internal | Agents 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), tracemetrics, discover, issue, error-events, logs. Run sentry dashboard widget --help for dataset descriptions, query formats, and examples.
Row-filling examples:
# 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 10Quick Reference
Time filtering
Use --period (alias: -t) to filter by time window:
sentry trace list --period 1h
sentry span list --period 24h
sentry span list -t 7dScoping to an org or project
Org and project are positional arguments following gh CLI conventions:
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:
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, transactions, logs, errors, discover.
Common Mistakes
- Wrong issue ID format: Use
PROJECT-123(short ID), not the numeric ID123456789. The short ID includes the project prefix. - Pre-authenticating unnecessarily: Don't run
sentry auth loginbefore every command. The CLI detects missing/expired auth and prompts automatically. Only runsentry auth loginif you need to switch accounts. - Missing `--json` for piping: Human-readable output includes formatting. Use
--jsonwhen parsing output programmatically. - Specifying org/project when not needed: Auto-detection resolves org/project from
.sentryclircconfig 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. - Confusing `--query` syntax: The
--queryflag uses Sentry search syntax (e.g.,is:unresolved,assigned:me), not free text search. - Not using `--web`: View commands support
-w/--webto open the resource in the browser — useful for sharing links. - Fetching API schemas instead of using the CLI: Prefer
sentry schemato browse the API andsentry apito make requests — the CLI handles authentication and endpoint resolution, so there's rarely a need to download OpenAPI specs separately. - Release version mismatch: The
org/versionpositional is<org-slug>/<version>, whereorg/is the org, not part of the version.sentry release create sentry/1.0.0creates version1.0.0in orgsentry. If yourSentry.init()usesrelease: "1.0.0", this is correct. Don't double-prefix likesentry/myapp/1.0.0. - Running `set-commits --auto` without a git checkout:
--autoneeds a local git repo to discover the origin remote URL and HEAD commit. In CI, ensureactions/checkoutwithfetch-depth: 0runs beforeset-commits --auto. - Using `sentry api` when CLI commands suffice:
sentry issue list --jsonalready includesshortId,title,priority,level,status,permalink, and other fields at the top level. Some fields likecount,userCount,firstSeen, andlastSeenmay be null depending on the issue. Use--fieldsto select specific fields and--helpto see all available fields. Only fall back tosentry apifor data the CLI doesn't expose.
Prerequisites
The CLI must be installed and authenticated before use.
Installation
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 sentryAuthentication
sentry auth login
sentry auth login --token YOUR_SENTRY_API_TOKEN
sentry auth status
sentry auth logoutCommand Reference
Auth
Authenticate with Sentry
sentry auth login— Authenticate with Sentrysentry auth logout— Log out of Sentrysentry auth refresh— Refresh your authentication tokensentry auth status— View authentication statussentry auth token— Print the stored authentication tokensentry auth whoami— Show the currently authenticated user
→ Full flags and examples: references/auth.md
Org
Work with Sentry organizations
sentry org list— List organizationssentry org view <org>— View details of an organization
→ Full flags and examples: references/org.md
Project
Work with Sentry projects
sentry project create <name> <platform>— Create a new projectsentry project delete <org/project>— Delete a projectsentry project list <org/project>— List projectssentry 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 projectsentry issue events <issue>— List events for a specific issuesentry issue explain <issue>— Analyze an issue's root cause using Seer AIsentry issue plan <issue>— Generate a solution plan using Seer AIsentry issue view <issue>— View details of a specific issuesentry issue resolve <issue>— Mark an issue as resolvedsentry issue unresolve <issue>— Reopen a resolved issuesentry issue merge <issue...>— Merge 2+ issues into a single canonical group
→ Full flags and examples: references/issue.md
Event
View and list Sentry events
sentry event view <org/project/event-id...>— View details of a specific eventsentry event list <issue>— List events for an issue
→ 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
CLI
CLI-related commands
sentry cli defaults <key value...>— View and manage default settingssentry cli feedback <message...>— Send feedback about the CLIsentry cli fix— Diagnose and repair CLI database issuessentry cli setup— Configure shell integrationsentry cli upgrade <version>— Update the Sentry CLI to the latest version
→ Full flags and examples: references/cli.md
Dashboard
Manage Sentry dashboards
sentry dashboard list <org/title-filter...>— List dashboardssentry dashboard view <org/project/dashboard...>— View a dashboardsentry dashboard create <org/project/title...>— Create a dashboardsentry dashboard widget add <org/project/dashboard/title...>— Add a widget to a dashboardsentry dashboard widget edit <org/project/dashboard...>— Edit a widget in a dashboardsentry dashboard widget delete <org/project/dashboard...>— Delete a widget from a dashboard
→ Full flags and examples: references/dashboard.md
Release
Work with Sentry releases
sentry release list <org/project>— List releases with adoption and health metricssentry release view <org/version...>— View release details with health metricssentry release create <org/version...>— Create a releasesentry release finalize <org/version...>— Finalize a releasesentry release delete <org/version...>— Delete a releasesentry release deploy <org/version environment name...>— Create a deploy for a releasesentry release deploys <org/version...>— List deploys for a releasesentry release set-commits <org/version...>— Set commits for a releasesentry 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
Log
View Sentry logs
sentry log list <org/project-or-trace-id...>— List logs from a projectsentry log view <org/project/log-id...>— View details of one or more log entries
→ Full flags and examples: references/log.md
Sourcemap
Manage sourcemaps
sentry sourcemap inject <directory>— Inject debug IDs into JavaScript files and sourcemapssentry sourcemap upload <directory>— Upload sourcemaps to Sentry
→ 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 tracesentry span view <trace-id/span-id...>— View details of specific spans
→ Full flags and examples: references/span.md
Trace
View distributed traces
sentry trace list <org/project>— List recent traces in a projectsentry trace view <org/project/trace-id...>— View details of a specific tracesentry 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 trialssentry 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
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). OverridesSENTRY_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:
sentry org list --json | jq '.[] | .slug'Opening in Browser
View commands support -w or --web flag to open the resource in your browser:
sentry issue view PROJ-123 -wAPI Commands
Make an authenticated API request
sentry api <endpoint>
Make an authenticated API request
Flags:
-X, --method <value> - The HTTP method for the request - (default: "GET")-d, --data <value> - Inline JSON body for the request (like curl -d)-F, --field <value>... - Add a typed parameter (key=value, key[sub]=value, key[]=value)-f, --raw-field <value>... - Add a string parameter without JSON parsing-H, --header <value>... - Add a HTTP request header in key:value format--input <value> - The file to use as body for the HTTP request (use "-" to read from standard input)--silent - Do not print the response body--verbose - Include full HTTP request and response in the output-n, --dry-run - Show the resolved request without sending it
Examples:
# List organizations
sentry api organizations/
# Get a specific issue
sentry api issues/123456789/
# Create a release
sentry api organizations/my-org/releases/ \
-X POST -F version=1.0.0
# With inline JSON body
sentry api issues/123456789/ \
-X POST -d '{"status": "resolved"}'
# Update an issue status
sentry api issues/123456789/ \
-X PUT -F status=resolved
# Assign an issue
sentry api issues/123456789/ \
-X PUT --field assignedTo="user@example.com"
sentry api projects/my-org/my-project/ -X DELETE
# Add custom headers
sentry api organizations/ -H "X-Custom: value"
# Read body from a file
sentry api projects/my-org/my-project/releases/ -X POST --input release.json
# Verbose mode (shows full HTTP request/response)
sentry api organizations/ --verbose
# Preview the request without sending
sentry api organizations/ --dry-runAll commands also support --json, --fields, --help, --log-level, and --verbose flags.
Auth Commands
Authenticate with Sentry
sentry auth login
Authenticate with Sentry
Flags:
--token <value> - Authenticate using an API token instead of OAuth--timeout <value> - Timeout for OAuth flow in seconds (default: 900) - (default: "900")--force - Re-authenticate without prompting
Examples:
sentry auth login
sentry auth login --token YOUR_SENTRY_API_TOKEN
SENTRY_URL=https://sentry.example.com sentry auth login
SENTRY_URL=https://sentry.example.com sentry auth login --token YOUR_TOKENsentry auth logout
Log out of Sentry
Examples:
sentry auth logoutsentry auth refresh
Refresh your authentication token
Flags:
--force - Force refresh even if token is still valid
Examples:
sentry auth refreshsentry auth status
View authentication status
Flags:
--show-token - Show the stored token (masked by default)-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data
Examples:
sentry auth status
# Show the raw token
sentry auth status --show-token
# View current user
sentry auth whoamisentry auth token
Print the stored authentication token
Examples:
sentry auth tokensentry auth whoami
Show the currently authenticated user
Flags:
-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data
All commands also support --json, --fields, --help, --log-level, and --verbose flags.
CLI Commands
CLI-related commands
sentry cli defaults <key value...>
View and manage default settings
Flags:
--clear - Clear the specified default, or all defaults if no key is given-y, --yes - Skip confirmation prompt-f, --force - Force the operation without confirmation
sentry cli feedback <message...>
Send feedback about the CLI
Examples:
# Send positive feedback
sentry cli feedback i love this tool
# Report an issue
sentry cli feedback the issue view is confusingsentry cli fix
Diagnose and repair CLI database issues
Flags:
--dry-run - Show what would be fixed without making changes
Examples:
sentry cli fixsentry cli setup
Configure shell integration
Flags:
--install - Install the binary from a temp location to the system path--method <value> - Installation method (curl, npm, pnpm, bun, yarn)--channel <value> - Release channel to persist (stable or nightly)--no-modify-path - Skip PATH modification--no-completions - Skip shell completion installation--no-agent-skills - Skip agent skill installation for AI coding assistants--quiet - Suppress output (for scripted usage)
Examples:
# Run full setup (PATH, completions, agent skills)
sentry cli setup
# Skip agent skill installation
sentry cli setup --no-agent-skills
# Skip PATH and completion modifications
sentry cli setup --no-modify-path --no-completionssentry cli upgrade <version>
Update the Sentry CLI to the latest version
Flags:
--check - Check for updates without installing--force - Force upgrade even if already on the latest version--offline - Upgrade using only cached version info and patches (no network)--method <value> - Installation method to use (curl, brew, npm, pnpm, bun, yarn)
Examples:
sentry cli upgrade --check
# Upgrade to latest stable
sentry cli upgrade
# Upgrade to a specific version
sentry cli upgrade 0.5.0
# Force re-download
sentry cli upgrade --force
# Switch to nightly builds
sentry cli upgrade nightly
# Switch back to stable
sentry cli upgrade stableAll commands also support --json, --fields, --help, --log-level, and --verbose flags.
Dashboard Commands
Manage Sentry dashboards
sentry dashboard list <org/title-filter...>
List dashboards
Flags:
-w, --web - Open in browser-n, --limit <value> - Maximum number of dashboards to list - (default: "25")-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data-c, --cursor <value> - Navigate pages: "next", "prev", "first" (or raw cursor string)
Examples:
# List all dashboards
sentry dashboard list
# Filter by name pattern
sentry dashboard list "Backend*"
# Open dashboard list in browser
sentry dashboard list -wsentry dashboard view <org/project/dashboard...>
View a dashboard
Flags:
-w, --web - Open in browser-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data-r, --refresh <value> - Auto-refresh interval in seconds (default: 60, min: 10)-t, --period <value> - Time range: "7d", "2026-03-01..2026-04-01", ">=2026-03-01"
Examples:
# View by title
sentry dashboard view 'Frontend Performance'
# View by ID
sentry dashboard view 12345
# Auto-refresh every 30 seconds
sentry dashboard view "Backend Performance" --refresh 30
# Open in browser
sentry dashboard view 12345 -wsentry dashboard create <org/project/title...>
Create a dashboard
Examples:
sentry dashboard create 'Frontend Performance'sentry dashboard widget add <org/project/dashboard/title...>
Add a widget to a dashboard
Flags:
-d, --display <value> - Display type (big_number, line, area, bar, table, stacked_area, top_n, text, categorical_bar, details, wheel, rage_and_dead_clicks, server_tree, agents_traces_table)--dataset <value> - Widget dataset (default: spans). Accepts canonical names and API synonyms: spans, error-events/errors, transaction-like/transactions, tracemetrics/metrics, logs, issue, discover-q, --query <value>... - Aggregate expression (e.g. count, p95:span.duration)-w, --where <value> - Search conditions filter (e.g. is:unresolved)-g, --group-by <value>... - Group-by column (repeatable)-s, --sort <value> - Order by (prefix - for desc, e.g. -count)-n, --limit <value> - Result limit-x, --col <value> - Grid column position (0-based, 0–5)-y, --row <value> - Grid row position (0-based)--width <value> - Widget width in grid columns (1–6)--height <value> - Widget height in grid rows (min 1)-l, --layout <value> - Layout mode: sequential (append in order) or dense (fill gaps) - (default: "sequential")
Examples:
# Simple counter widget
sentry dashboard widget add 'My Dashboard' "Error Count" \
--display big_number --query count
# Line chart with group-by
sentry dashboard widget add 'My Dashboard' "Errors by Browser" \
--display line --query count --group-by browser.name
# Table with multiple aggregates, sorted descending
sentry dashboard widget add 'My Dashboard' "Top Endpoints" \
--display table \
--query count --query p95:span.duration \
--group-by transaction \
--sort -count --limit 10
# With search filter
sentry dashboard widget add 'My Dashboard' "Slow Requests" \
--display bar --query p95:span.duration \
--where "span.op:http.client" \
--group-by span.descriptionsentry dashboard widget edit <org/project/dashboard...>
Edit a widget in a dashboard
Flags:
-i, --index <value> - Widget index (0-based)-t, --title <value> - Widget title to match--new-title <value> - New widget title-d, --display <value> - Display type (big_number, line, area, bar, table, stacked_area, top_n, text, categorical_bar, details, wheel, rage_and_dead_clicks, server_tree, agents_traces_table)--dataset <value> - Widget dataset (default: spans). Accepts canonical names and API synonyms: spans, error-events/errors, transaction-like/transactions, tracemetrics/metrics, logs, issue, discover-q, --query <value>... - Aggregate expression (e.g. count, p95:span.duration)-w, --where <value> - Search conditions filter (e.g. is:unresolved)-g, --group-by <value>... - Group-by column (repeatable)-s, --sort <value> - Order by (prefix - for desc, e.g. -count)-n, --limit <value> - Result limit-x, --col <value> - Grid column position (0-based, 0–5)-y, --row <value> - Grid row position (0-based)--width <value> - Widget width in grid columns (1–6)--height <value> - Widget height in grid rows (min 1)
Examples:
# Change display type
sentry dashboard widget edit 12345 --title 'Error Count' --display bar
# Rename a widget
sentry dashboard widget edit 'My Dashboard' --index 0 --new-title 'Total Errors'
# Change the query
sentry dashboard widget edit 12345 --title 'Error Rate' --query p95:span.durationsentry dashboard widget delete <org/project/dashboard...>
Delete a widget from a dashboard
Flags:
-i, --index <value> - Widget index (0-based)-t, --title <value> - Widget title to match-y, --yes - Skip confirmation prompt-f, --force - Force the operation without confirmation-n, --dry-run - Show what would happen without making changes
Examples:
# Delete by title
sentry dashboard widget delete 'My Dashboard' --title 'Error Count'
# Delete by index
sentry dashboard widget delete 12345 --index 2All commands also support --json, --fields, --help, --log-level, and --verbose flags.
Event Commands
View and list Sentry events
sentry event view <org/project/event-id...>
View details of a specific event
Flags:
-w, --web - Open in browser--spans <value> - Span tree depth limit (number, "all" for unlimited, "no" to disable) - (default: "3")-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data
sentry event list <issue>
List events for an issue
Flags:
-n, --limit <value> - Number of events (1-1000) - (default: "25")-q, --query <value> - Search query (Sentry search syntax)--full - Include full event body (stacktraces)-t, --period <value> - Time range: "7d", "2026-03-01..2026-04-01", ">=2026-03-01" - (default: "7d")-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data-c, --cursor <value> - Navigate pages: "next", "prev", "first" (or raw cursor string)
JSON Fields (use --json --fields to select specific fields):
| Field | Type | Description |
|---|---|---|
id | string | Internal event ID |
event.type | string | Event type (error, default, transaction) |
groupID | string \ | null |
eventID | string | UUID-format event ID |
projectID | string | Project ID |
message | string | Event message |
title | string | Event title |
location | string \ | null |
culprit | string \ | null |
user | object \ | null |
tags | array | Event tags |
platform | string \ | null |
dateCreated | string | ISO 8601 creation timestamp |
crashFile | string \ | null |
metadata | unknown \ | null |
Examples:
sentry event view abc123def456abc123def456abc12345
# Open in browser
sentry event view abc123def456abc123def456abc12345 -wAll commands also support --json, --fields, --help, --log-level, and --verbose flags.
Init Commands
Initialize Sentry in your project (experimental)
sentry init <target> <directory>
Initialize Sentry in your project (experimental)
Flags:
-y, --yes - Non-interactive mode (accept defaults)-n, --dry-run - Show what would happen without making changes--features <value>... - Features to enable: errors,tracing,logs,replay,profiling,ai-monitoring,user-feedback-t, --team <value> - Team slug to create the project under
Examples:
# Interactive setup
sentry init
# Non-interactive with auto-yes
sentry init -y
# Dry run to preview changes
sentry init --dry-run
# Target a subdirectory
sentry init ./my-app
# Use a specific org (auto-detect project)
sentry init acme/
# Use a specific org and project
sentry init acme/my-app
# Assign a team when creating a new project
sentry init acme/ --team backend
# Enable specific features
sentry init --features profiling,replayAll commands also support --json, --fields, --help, --log-level, and --verbose flags.
Issue Commands
Manage Sentry issues
sentry issue list <org/project>
List issues in a project
Flags:
-q, --query <value> - Search query (Sentry syntax, implicit AND, no OR operator)-n, --limit <value> - Maximum number of issues to list - (default: "25")-s, --sort <value> - Sort by: date, new, freq, user - (default: "date")-t, --period <value> - Time range: "7d", "2026-03-01..2026-04-01", ">=2026-03-01" - (default: "90d")-c, --cursor <value> - Pagination cursor (use "next" for next page, "prev" for previous)--compact - Single-line rows for compact output (auto-detects if omitted)-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data
JSON Fields (use --json --fields to select specific fields):
| Field | Type | Description |
|---|---|---|
id | string | Numeric issue ID |
shortId | string | Human-readable short ID (e.g. PROJ-ABC) |
title | string | Issue title |
culprit | string | Culprit string |
count | string | Total event count |
userCount | number | Number of affected users |
firstSeen | string \ | null |
lastSeen | string \ | null |
level | string | Severity level |
status | string | Issue status |
priority | string | Triage priority |
platform | string | Platform |
permalink | string | URL to the issue in Sentry |
project | object | Project info |
metadata | object | Issue metadata |
assignedTo | unknown \ | null |
substatus | string \ | null |
isUnhandled | boolean | Whether the issue is unhandled |
seerFixabilityScore | number \ | null |
Examples:
# List issues in a specific project
sentry issue list my-org/frontend
# All projects in an org
sentry issue list my-org/
# Search for a project across organizations
sentry issue list frontend
# Show only unresolved issues
sentry issue list my-org/frontend --query "is:unresolved"
# Show resolved issues
sentry issue list my-org/frontend --query "is:resolved"
# Sort by frequency
sentry issue list my-org/frontend --sort freq --limit 20
# Multiple filters (space-separated = implicit AND)
sentry issue list --query "is:unresolved level:error assigned:me"
# Negation and wildcards
sentry issue list --query "!browser:Chrome message:*timeout*"
# Match multiple values for one key (in-list syntax)
sentry issue list --query "browser:[Chrome,Firefox]"sentry issue events <issue>
List events for a specific issue
Flags:
-n, --limit <value> - Number of events (1-1000) - (default: "25")-q, --query <value> - Search query (Sentry search syntax)--full - Include full event body (stacktraces)-t, --period <value> - Time range: "7d", "2026-03-01..2026-04-01", ">=2026-03-01" - (default: "7d")-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data-c, --cursor <value> - Navigate pages: "next", "prev", "first" (or raw cursor string)
JSON Fields (use --json --fields to select specific fields):
| Field | Type | Description |
|---|---|---|
id | string | Internal event ID |
event.type | string | Event type (error, default, transaction) |
groupID | string \ | null |
eventID | string | UUID-format event ID |
projectID | string | Project ID |
message | string | Event message |
title | string | Event title |
location | string \ | null |
culprit | string \ | null |
user | object \ | null |
tags | array | Event tags |
platform | string \ | null |
dateCreated | string | ISO 8601 creation timestamp |
crashFile | string \ | null |
metadata | unknown \ | null |
sentry issue explain <issue>
Analyze an issue's root cause using Seer AI
Flags:
--force - Force new analysis even if one exists-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data
Examples:
# Analyze root cause (may take a few minutes for new issues)
sentry issue explain 123456789
# By short ID with org prefix
sentry issue explain my-org/MYPROJECT-ABC
# Force a fresh analysis
sentry issue explain 123456789 --force
# Generate a fix plan (requires explain to be run first)
sentry issue plan 123456789
# Specify which root cause to plan for
sentry issue plan 123456789 --cause 0sentry issue plan <issue>
Generate a solution plan using Seer AI
Flags:
--cause <value> - Root cause ID to plan (required if multiple causes exist)--force - Force new plan even if one exists-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data
sentry issue view <issue>
View details of a specific issue
Flags:
-w, --web - Open in browser--spans <value> - Span tree depth limit (number, "all" for unlimited, "no" to disable) - (default: "3")-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data
Examples:
sentry issue view FRONT-ABC
# Open in browser
sentry issue view FRONT-ABC -wsentry issue resolve <issue>
Mark an issue as resolved
Flags:
-i, --in <value> - Resolve in a release, next release, or commit ('<version>' | '@next' | '@commit' | '@commit:<repo>@<sha>')
Examples:
# Resolve immediately (no regression tracking)
sentry issue resolve CLI-G5
# Resolve in a specific release — future events on newer releases are
# regression-flagged
sentry issue resolve CLI-G5 --in 0.26.1
# Monorepo-style releases work too (no special parsing)
sentry issue resolve CLI-G5 --in spotlight@1.2.3
# Resolve in the next release (tied to current HEAD)
sentry issue resolve CLI-G5 --in @next
sentry issue resolve CLI-G5 -i @next
# Resolve in the current git HEAD — auto-detects the Sentry repo from
# your git origin remote (hard-errors if it can't)
sentry issue resolve CLI-G5 --in @commit
# Explicit commit + repo (no git inspection; repo must be registered in Sentry)
sentry issue resolve CLI-G5 --in @commit:getsentry/cli@abc123def
# Reopen a resolved issue
sentry issue unresolve CLI-G5
sentry issue reopen CLI-G5 # aliassentry issue unresolve <issue>
Reopen a resolved issue
sentry issue merge <issue...>
Merge 2+ issues into a single canonical group
Flags:
-i, --into <value> - Prefer this issue as the canonical parent (must match one of the provided IDs)
Examples:
# Let Sentry auto-pick the parent (typically the largest by event count)
sentry issue merge CLI-K9 CLI-15H CLI-15N
# Pin the canonical parent explicitly — accepts the same formats as
# positional args, including org-qualified and project-alias forms
sentry issue merge CLI-K9 CLI-15H CLI-15N --into CLI-K9
sentry issue merge my-org/CLI-K9 my-org/CLI-15H --into my-org/CLI-K9
sentry issue merge cli-k9 cli-15h --into cli-k9 # alias form
# Cross-org merges are rejected — all issues must share an organization
# Non-error issue types (performance, info, etc.) cannot be mergedAll commands also support --json, --fields, --help, --log-level, and --verbose flags.
Log Commands
View Sentry logs
sentry log list <org/project-or-trace-id...>
List logs from a project
Flags:
-n, --limit <value> - Number of log entries (1-1000) - (default: "100")-q, --query <value> - Filter query (e.g., "level:error", "project:backend", "project:[a,b]")-f, --follow <value> - Stream logs (optionally specify poll interval in seconds)-t, --period <value> - Time range: "7d", "2026-03-01..2026-04-01", ">=2026-03-01"-s, --sort <value> - Sort order: "newest" (default) or "oldest" - (default: "newest")--fresh - Bypass cache, re-detect projects, and fetch fresh data
JSON Fields (use --json --fields to select specific fields):
| Field | Type | Description |
|---|---|---|
sentry.item_id | string | Unique log entry ID |
timestamp | string | Log timestamp (ISO 8601) |
timestamp_precise | number | Nanosecond-precision timestamp |
message | string \ | null |
severity | string \ | null |
trace | string \ | null |
Examples:
# List last 100 logs (default)
sentry log list
# Show only error logs
sentry log list -q 'level:error'
# Filter by message content
sentry log list -q 'database'
# Limit results
sentry log list --limit 50
# Stream with default 2-second poll interval
sentry log list -f
# Stream with custom 5-second poll interval
sentry log list -f 5
# Stream error logs from a specific project
sentry log list my-org/backend -f -q 'level:error'
sentry log list --json | jq '.data[] | select(.severity == "error")'sentry log view <org/project/log-id...>
View details of one or more log entries
Flags:
-w, --web - Open in browser-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data
Examples:
sentry log view 968c763c740cfda8b6728f27fb9e9b01
# With explicit project
sentry log view my-org/backend 968c763c740cfda8b6728f27fb9e9b01
# Open in browser
sentry log view 968c763c740cfda8b6728f27fb9e9b01 -wAll commands also support --json, --fields, --help, --log-level, and --verbose flags.
Org Commands
Work with Sentry organizations
sentry org list
List organizations
Flags:
-n, --limit <value> - Maximum number of organizations to list - (default: "25")-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data
sentry org view <org>
View details of an organization
Flags:
-w, --web - Open in browser-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data
Examples:
# List organizations
sentry org list
# View organization details
sentry org view my-org
# Open in browser
sentry org view my-org -w
# JSON output
sentry org list --jsonAll commands also support --json, --fields, --help, --log-level, and --verbose flags.
Project Commands
Work with Sentry projects
sentry project create <name> <platform>
Create a new project
Flags:
-t, --team <value> - Team to create the project under-n, --dry-run - Show what would happen without making changes
Examples:
# Create a new project
sentry project create my-new-app javascript-nextjs
# Create under a specific org and team
sentry project create my-org/my-new-app python --team backend-team
# Preview without creating
sentry project create my-new-app node --dry-runsentry project delete <org/project>
Delete a project
Flags:
-y, --yes - Skip confirmation prompt-f, --force - Force the operation without confirmation-n, --dry-run - Show what would happen without making changes
Examples:
# Delete a project (will prompt for confirmation)
sentry project delete my-org/old-project
# Delete without confirmation
sentry project delete my-org/old-project --yessentry project list <org/project>
List projects
Flags:
-n, --limit <value> - Maximum number of projects to list - (default: "25")-p, --platform <value> - Filter by platform (e.g., javascript, python)-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data-c, --cursor <value> - Navigate pages: "next", "prev", "first" (or raw cursor string)
sentry project view <org/project>
View details of a project
Flags:
-w, --web - Open in browser-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data
Examples:
# List all projects in an org
sentry project list my-org/
# Filter by platform
sentry project list my-org/ --platform javascript
# View project details
sentry project view my-org/frontend
# Open project in browser
sentry project view my-org/frontend -wAll commands also support --json, --fields, --help, --log-level, and --verbose flags.
Release Commands
Work with Sentry releases
sentry release list <org/project>
List releases with adoption and health metrics
Flags:
-n, --limit <value> - Maximum number of releases to list - (default: "25")-s, --sort <value> - Sort: date, sessions, users, crash_free_sessions (cfs), crash_free_users (cfu) - (default: "date")-e, --environment <value>... - Filter by environment (repeatable, comma-separated)-t, --period <value> - Health stats period (e.g., 24h, 7d, 14d, 90d) - (default: "90d")--status <value> - Filter by status: open (default) or archived - (default: "open")-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data-c, --cursor <value> - Navigate pages: "next", "prev", "first" (or raw cursor string)
sentry release view <org/version...>
View release details with health metrics
Flags:
-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data
sentry release create <org/version...>
Create a release
Flags:
-p, --project <value> - Associate with project(s), comma-separated--finalize - Immediately finalize the release (set dateReleased)--ref <value> - Git ref (branch or tag name)--url <value> - URL to the release source-n, --dry-run - Show what would happen without making changes
sentry release finalize <org/version...>
Finalize a release
Flags:
--released <value> - Custom release timestamp (ISO 8601). Defaults to now.--url <value> - URL for the release-n, --dry-run - Show what would happen without making changes
sentry release delete <org/version...>
Delete a release
Flags:
-y, --yes - Skip confirmation prompt-f, --force - Force the operation without confirmation-n, --dry-run - Show what would happen without making changes
sentry release deploy <org/version environment name...>
Create a deploy for a release
Flags:
--url <value> - URL for the deploy--started <value> - Deploy start time (ISO 8601)--finished <value> - Deploy finish time (ISO 8601)-t, --time <value> - Deploy duration in seconds (sets started = now - time, finished = now)-n, --dry-run - Show what would happen without making changes
sentry release deploys <org/version...>
List deploys for a release
sentry release set-commits <org/version...>
Set commits for a release
Flags:
--auto - Auto-discover commits via repository integration (needs local git checkout)--local - Read commits from local git history--clear - Clear all commits from the release--commit <value> - Explicit commit as REPO@SHA or REPO@PREV..SHA (comma-separated)--initial-depth <value> - Number of commits to read with --local - (default: "20")
sentry release propose-version
Propose a release version
Examples:
# List releases (auto-detect org)
sentry release list
# List releases in a specific org
sentry release list my-org/
# View release details
sentry release view 1.0.0
sentry release view my-org/1.0.0
# Create and finalize a release
sentry release create 1.0.0 --finalize
# Create a release, then finalize separately
sentry release create 1.0.0
sentry release set-commits 1.0.0 --auto
sentry release finalize 1.0.0
# Set commits from local git history
sentry release set-commits 1.0.0 --local
# Create a deploy
sentry release deploy 1.0.0 production
sentry release deploy 1.0.0 staging "Deploy #42"
# Propose a version from git HEAD
sentry release create $(sentry release propose-version)
# Output as JSON
sentry release list --json
sentry release view 1.0.0 --json
# Full release workflow with explicit org
sentry release create my-org/1.0.0 --project my-project
sentry release set-commits my-org/1.0.0 --auto
sentry release finalize my-org/1.0.0
sentry release deploy my-org/1.0.0 productionAll commands also support --json, --fields, --help, --log-level, and --verbose flags.
Repo Commands
Work with Sentry repositories
sentry repo list <org/project>
List repositories
Flags:
-n, --limit <value> - Maximum number of repositories to list - (default: "25")-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data-c, --cursor <value> - Navigate pages: "next", "prev", "first" (or raw cursor string)
JSON Fields (use --json --fields to select specific fields):
| Field | Type | Description |
|---|---|---|
id | string | Repository ID |
name | string | Repository name |
url | string \ | null |
provider | object | Version control provider |
status | string | Integration status |
dateCreated | string | Creation date (ISO 8601) |
integrationId | string | Integration ID |
externalSlug | string \ | null |
externalId | string \ | null |
Examples:
# List repositories (auto-detect org)
sentry repo list
# List repos in a specific org with pagination
sentry repo list my-org/ -c next
# Output as JSON
sentry repo list --jsonAll commands also support --json, --fields, --help, --log-level, and --verbose flags.
Schema Commands
Browse the Sentry API schema
sentry schema <resource...>
Browse the Sentry API schema
Flags:
--all - Show all endpoints in a flat list-q, --search <value> - Search endpoints by keyword
Examples:
# List all API resources
sentry schema
# Browse issue endpoints
sentry schema issues
# View details for a specific operation
sentry schema issues list
# Search for monitoring-related endpoints
sentry schema --search monitor
# Flat list of every endpoint
sentry schema --allAll commands also support --json, --fields, --help, --log-level, and --verbose flags.
Sourcemap Commands
Manage sourcemaps
sentry sourcemap inject <directory>
Inject debug IDs into JavaScript files and sourcemaps
Flags:
--ext <value> - Comma-separated file extensions to process (default: .js,.cjs,.mjs)--dry-run - Show what would be modified without writing
Examples:
# Inject debug IDs into all JS files in dist/
sentry sourcemap inject ./dist
# Preview changes without writing
sentry sourcemap inject ./dist --dry-run
# Only process specific extensions
sentry sourcemap inject ./build --ext .js,.mjssentry sourcemap upload <directory>
Upload sourcemaps to Sentry
Flags:
--release <value> - Release version to associate with the upload--url-prefix <value> - URL prefix for uploaded files (default: ~/) - (default: "~/")
Examples:
# Upload sourcemaps from dist/
sentry sourcemap upload ./dist
# Associate with a release
sentry sourcemap upload ./dist --release 1.0.0
# Set a custom URL prefix
sentry sourcemap upload ./dist --url-prefix '~/static/js/'All commands also support --json, --fields, --help, --log-level, and --verbose flags.
Span Commands
List and view spans in projects or traces
sentry span list <org/project/trace-id...>
List spans in a project or trace
Flags:
-n, --limit <value> - Number of spans (<=1000) - (default: "25")-q, --query <value> - Filter spans (e.g., "op:db", "project:backend", "project:[cli,api]")-s, --sort <value> - Sort order: date, duration - (default: "date")-t, --period <value> - Time range: "7d", "2026-03-01..2026-04-01", ">=2026-03-01" - (default: "7d")-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data-c, --cursor <value> - Navigate pages: "next", "prev", "first" (or raw cursor string)
JSON Fields (use --json --fields to select specific fields):
| Field | Type | Description |
|---|---|---|
id | string | Span ID |
parent_span | string \ | null |
span.op | string \ | null |
description | string \ | null |
span.duration | number \ | null |
timestamp | string | Timestamp (ISO 8601) |
project | string | Project slug |
transaction | string \ | null |
trace | string | Trace ID |
Examples:
# List recent spans in the current project
sentry span list
# Find all DB spans
sentry span list -q "op:db"
# Slow spans in the last 24 hours
sentry span list -q "duration:>100ms" --period 24h
# List spans within a specific trace
sentry span list abc123def456abc123def456abc12345
# Paginate through results
sentry span list -c next
# Show only spans from one project within a trace
sentry span list my-org/cli-server/abc123def456abc123def456abc12345
# Or use --query to filter by project
sentry span list abc123def456abc123def456abc12345 -q "project:cli-server"
# Multiple projects at once
sentry span list abc123def456abc123def456abc12345 -q "project:[cli-server,api]"sentry span view <trace-id/span-id...>
View details of specific spans
Flags:
--spans <value> - Span tree depth limit (number, "all" for unlimited, "no" to disable) - (default: "3")-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data
Examples:
# View a single span
sentry span view abc123def456abc123def456abc12345 a1b2c3d4e5f67890
# View multiple spans at once
sentry span view abc123def456abc123def456abc12345 a1b2c3d4e5f67890 b2c3d4e5f6789012
# With explicit org/project
sentry span view my-org/backend/abc123def456abc123def456abc12345 a1b2c3d4e5f67890All commands also support --json, --fields, --help, --log-level, and --verbose flags.
Team Commands
Work with Sentry teams
sentry team list <org/project>
List teams
Flags:
-n, --limit <value> - Maximum number of teams to list - (default: "25")-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data-c, --cursor <value> - Navigate pages: "next", "prev", "first" (or raw cursor string)
JSON Fields (use --json --fields to select specific fields):
| Field | Type | Description |
|---|---|---|
id | string | Team ID |
slug | string | Team slug |
name | string | Team name |
dateCreated | string | Creation date (ISO 8601) |
isMember | boolean | Whether you are a member |
teamRole | string \ | null |
memberCount | number | Number of members |
Examples:
# List teams
sentry team list my-org/
# Paginate through teams
sentry team list my-org/ -c next
# Output as JSON
sentry team list --jsonAll commands also support --json, --fields, --help, --log-level, and --verbose flags.
Trace Commands
View distributed traces
sentry trace list <org/project>
List recent traces in a project
Flags:
-n, --limit <value> - Number of traces (1-1000) - (default: "25")-q, --query <value> - Search query (Sentry search syntax)-s, --sort <value> - Sort by: date, duration - (default: "date")-t, --period <value> - Time range: "7d", "2026-03-01..2026-04-01", ">=2026-03-01" - (default: "7d")-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data-c, --cursor <value> - Navigate pages: "next", "prev", "first" (or raw cursor string)
JSON Fields (use --json --fields to select specific fields):
| Field | Type | Description |
|---|---|---|
trace | string | Trace ID |
id | string | Event ID |
transaction | string | Transaction name |
timestamp | string | Timestamp (ISO 8601) |
transaction.duration | number | Duration (ms) |
project | string | Project slug |
Examples:
# List last 20 traces (default)
sentry trace list
# Sort by slowest first
sentry trace list --sort duration
# Filter by transaction name, last 24 hours
sentry trace list -q "transaction:GET /api/users" --period 24h
# Paginate through results
sentry trace list my-org/backend -c nextsentry trace view <org/project/trace-id...>
View details of a specific trace
Flags:
-w, --web - Open in browser--full - Fetch full span attributes (auto-enabled with --json)--spans <value> - Span tree depth limit (number, "all" for unlimited, "no" to disable) - (default: "3")-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data
Examples:
# View trace details with span tree
sentry trace view abc123def456abc123def456abc12345
# Open trace in browser
sentry trace view abc123def456abc123def456abc12345 -w
# Auto-recover from an issue short ID
sentry trace view PROJ-123
# Filter trace view to one project's spans
sentry trace view my-org/cli-server/abc123def456abc123def456abc12345
# Full trace across all projects (default)
sentry trace view my-org/abc123def456abc123def456abc12345
# Filter trace logs by project
sentry trace logs my-org/cli-server/abc123def456abc123def456abc12345
# Multiple projects via --query
sentry trace logs abc123def456abc123def456abc12345 -q "project:[cli-server,api]"sentry trace logs <org/project/trace-id...>
View logs associated with a trace
Flags:
-w, --web - Open trace in browser-t, --period <value> - Time range: "7d", "2026-03-01..2026-04-01", ">=2026-03-01" - (default: "14d")-n, --limit <value> - Number of log entries (<=1000) - (default: "100")-q, --query <value> - Filter query (e.g., "level:error", "project:backend", "project:[a,b]")-s, --sort <value> - Sort order: "newest" (default) or "oldest" - (default: "newest")-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data
Examples:
# View logs for a trace
sentry trace logs abc123def456abc123def456abc12345
# Search with a longer time window
sentry trace logs --period 30d abc123def456abc123def456abc12345
# Filter logs within a trace
sentry trace logs -q 'level:error' abc123def456abc123def456abc12345All commands also support --json, --fields, --help, --log-level, and --verbose flags.
Trial Commands
Manage product trials
sentry trial list <org>
List product trials
JSON Fields (use --json --fields to select specific fields):
| Field | Type | Description |
|---|---|---|
category | string | Trial category (e.g. seerUsers, seerAutofix) |
startDate | string \ | null |
endDate | string \ | null |
reasonCode | number | Reason code |
isStarted | boolean | Whether the trial has started |
lengthDays | number \ | null |
sentry trial start <name> <org>
Start a product trial
Examples:
# List all trials for the current org
sentry trial list
# List trials for a specific org
sentry trial list my-org
# Start a Seer trial
sentry trial start seer
# Start a trial for a specific org
sentry trial start replays my-org
# Start a Business plan trial (opens browser)
sentry trial start planAll commands also support --json, --fields, --help, --log-level, and --verbose flags.