Skip to content

Commit 554bcb0

Browse files
Deploy preview for PR 690 🛫
1 parent c88177f commit 554bcb0

File tree

113 files changed

+12220
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+12220
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"skills": [
3+
{
4+
"name": "sentry-cli",
5+
"description": "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.",
6+
"files": [
7+
"SKILL.md",
8+
"references/api.md",
9+
"references/auth.md",
10+
"references/cli.md",
11+
"references/dashboard.md",
12+
"references/event.md",
13+
"references/init.md",
14+
"references/issue.md",
15+
"references/log.md",
16+
"references/org.md",
17+
"references/project.md",
18+
"references/release.md",
19+
"references/repo.md",
20+
"references/schema.md",
21+
"references/sourcemap.md",
22+
"references/span.md",
23+
"references/team.md",
24+
"references/trace.md",
25+
"references/trial.md"
26+
]
27+
}
28+
]
29+
}

‎pr-preview/pr-690/.well-known/skills/sentry-cli/SKILL.md‎

Lines changed: 464 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
---
2+
name: sentry-cli-api
3+
version: 0.26.0-dev.0
4+
description: Make an authenticated API request
5+
requires:
6+
bins: ["sentry"]
7+
auth: true
8+
---
9+
10+
# API Commands
11+
12+
Make an authenticated API request
13+
14+
### `sentry api <endpoint>`
15+
16+
Make an authenticated API request
17+
18+
**Flags:**
19+
- `-X, --method <value> - The HTTP method for the request - (default: "GET")`
20+
- `-d, --data <value> - Inline JSON body for the request (like curl -d)`
21+
- `-F, --field <value>... - Add a typed parameter (key=value, key[sub]=value, key[]=value)`
22+
- `-f, --raw-field <value>... - Add a string parameter without JSON parsing`
23+
- `-H, --header <value>... - Add a HTTP request header in key:value format`
24+
- `--input <value> - The file to use as body for the HTTP request (use "-" to read from standard input)`
25+
- `--silent - Do not print the response body`
26+
- `--verbose - Include full HTTP request and response in the output`
27+
- `-n, --dry-run - Show the resolved request without sending it`
28+
29+
**Examples:**
30+
31+
```bash
32+
# List organizations
33+
sentry api organizations/
34+
35+
# Get a specific issue
36+
sentry api issues/123456789/
37+
38+
# Create a release
39+
sentry api organizations/my-org/releases/ \
40+
-X POST -F version=1.0.0
41+
42+
# With inline JSON body
43+
sentry api issues/123456789/ \
44+
-X POST -d '{"status": "resolved"}'
45+
46+
# Update an issue status
47+
sentry api issues/123456789/ \
48+
-X PUT -F status=resolved
49+
50+
# Assign an issue
51+
sentry api issues/123456789/ \
52+
-X PUT --field assignedTo="user@example.com"
53+
54+
sentry api projects/my-org/my-project/ -X DELETE
55+
56+
# Add custom headers
57+
sentry api organizations/ -H "X-Custom: value"
58+
59+
# Read body from a file
60+
sentry api projects/my-org/my-project/releases/ -X POST --input release.json
61+
62+
# Verbose mode (shows full HTTP request/response)
63+
sentry api organizations/ --verbose
64+
65+
# Preview the request without sending
66+
sentry api organizations/ --dry-run
67+
```
68+
69+
All commands also support `--json`, `--fields`, `--help`, `--log-level`, and `--verbose` flags.
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
---
2+
name: sentry-cli-auth
3+
version: 0.26.0-dev.0
4+
description: Authenticate with Sentry
5+
requires:
6+
bins: ["sentry"]
7+
auth: true
8+
---
9+
10+
# Auth Commands
11+
12+
Authenticate with Sentry
13+
14+
### `sentry auth login`
15+
16+
Authenticate with Sentry
17+
18+
**Flags:**
19+
- `--token <value> - Authenticate using an API token instead of OAuth`
20+
- `--timeout <value> - Timeout for OAuth flow in seconds (default: 900) - (default: "900")`
21+
- `--force - Re-authenticate without prompting`
22+
23+
**Examples:**
24+
25+
```bash
26+
sentry auth login
27+
28+
sentry auth login --token YOUR_SENTRY_API_TOKEN
29+
30+
SENTRY_URL=https://sentry.example.com sentry auth login
31+
32+
SENTRY_URL=https://sentry.example.com sentry auth login --token YOUR_TOKEN
33+
```
34+
35+
### `sentry auth logout`
36+
37+
Log out of Sentry
38+
39+
**Examples:**
40+
41+
```bash
42+
sentry auth logout
43+
```
44+
45+
### `sentry auth refresh`
46+
47+
Refresh your authentication token
48+
49+
**Flags:**
50+
- `--force - Force refresh even if token is still valid`
51+
52+
**Examples:**
53+
54+
```bash
55+
sentry auth refresh
56+
```
57+
58+
### `sentry auth status`
59+
60+
View authentication status
61+
62+
**Flags:**
63+
- `--show-token - Show the stored token (masked by default)`
64+
- `-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data`
65+
66+
**Examples:**
67+
68+
```bash
69+
sentry auth status
70+
71+
# Show the raw token
72+
sentry auth status --show-token
73+
74+
# View current user
75+
sentry auth whoami
76+
```
77+
78+
### `sentry auth token`
79+
80+
Print the stored authentication token
81+
82+
**Examples:**
83+
84+
```bash
85+
sentry auth token
86+
```
87+
88+
### `sentry auth whoami`
89+
90+
Show the currently authenticated user
91+
92+
**Flags:**
93+
- `-f, --fresh - Bypass cache, re-detect projects, and fetch fresh data`
94+
95+
All commands also support `--json`, `--fields`, `--help`, `--log-level`, and `--verbose` flags.
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
---
2+
name: sentry-cli-cli
3+
version: 0.26.0-dev.0
4+
description: CLI-related commands
5+
requires:
6+
bins: ["sentry"]
7+
auth: true
8+
---
9+
10+
# CLI Commands
11+
12+
CLI-related commands
13+
14+
### `sentry cli feedback <message...>`
15+
16+
Send feedback about the CLI
17+
18+
**Examples:**
19+
20+
```bash
21+
# Send positive feedback
22+
sentry cli feedback i love this tool
23+
24+
# Report an issue
25+
sentry cli feedback the issue view is confusing
26+
```
27+
28+
### `sentry cli fix`
29+
30+
Diagnose and repair CLI database issues
31+
32+
**Flags:**
33+
- `--dry-run - Show what would be fixed without making changes`
34+
35+
**Examples:**
36+
37+
```bash
38+
sentry cli fix
39+
```
40+
41+
### `sentry cli setup`
42+
43+
Configure shell integration
44+
45+
**Flags:**
46+
- `--install - Install the binary from a temp location to the system path`
47+
- `--method <value> - Installation method (curl, npm, pnpm, bun, yarn)`
48+
- `--channel <value> - Release channel to persist (stable or nightly)`
49+
- `--no-modify-path - Skip PATH modification`
50+
- `--no-completions - Skip shell completion installation`
51+
- `--no-agent-skills - Skip agent skill installation for AI coding assistants`
52+
- `--quiet - Suppress output (for scripted usage)`
53+
54+
**Examples:**
55+
56+
```bash
57+
# Run full setup (PATH, completions, agent skills)
58+
sentry cli setup
59+
60+
# Skip agent skill installation
61+
sentry cli setup --no-agent-skills
62+
63+
# Skip PATH and completion modifications
64+
sentry cli setup --no-modify-path --no-completions
65+
```
66+
67+
### `sentry cli upgrade <version>`
68+
69+
Update the Sentry CLI to the latest version
70+
71+
**Flags:**
72+
- `--check - Check for updates without installing`
73+
- `--force - Force upgrade even if already on the latest version`
74+
- `--offline - Upgrade using only cached version info and patches (no network)`
75+
- `--method <value> - Installation method to use (curl, brew, npm, pnpm, bun, yarn)`
76+
77+
**Examples:**
78+
79+
```bash
80+
sentry cli upgrade --check
81+
82+
# Upgrade to latest stable
83+
sentry cli upgrade
84+
85+
# Upgrade to a specific version
86+
sentry cli upgrade 0.5.0
87+
88+
# Force re-download
89+
sentry cli upgrade --force
90+
91+
# Switch to nightly builds
92+
sentry cli upgrade nightly
93+
94+
# Switch back to stable
95+
sentry cli upgrade stable
96+
```
97+
98+
All commands also support `--json`, `--fields`, `--help`, `--log-level`, and `--verbose` flags.

0 commit comments

Comments
 (0)