sentry 0.5.2 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -66
- package/dist/bin.cjs +223 -187
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -1,113 +1,120 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src=".github/assets/banner.png" alt="Sentry CLI" />
|
|
3
|
+
</p>
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
<p align="center">
|
|
6
|
+
The command-line interface for Sentry. Built for developers and AI agents.
|
|
7
|
+
</p>
|
|
8
|
+
|
|
9
|
+
<p align="center">
|
|
10
|
+
<a href="https://cli.sentry.dev">Documentation</a> |
|
|
11
|
+
<a href="https://cli.sentry.dev/getting-started/">Getting Started</a> |
|
|
12
|
+
<a href="https://cli.sentry.dev/commands/">Commands</a>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
---
|
|
4
16
|
|
|
5
17
|
## Installation
|
|
6
18
|
|
|
7
|
-
Install
|
|
19
|
+
### Install Script (Recommended)
|
|
8
20
|
|
|
9
21
|
```bash
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
# pnpm
|
|
14
|
-
pnpm add -g sentry
|
|
22
|
+
curl -fsSL https://cli.sentry.dev/install | bash
|
|
23
|
+
```
|
|
15
24
|
|
|
16
|
-
|
|
17
|
-
yarn global add sentry
|
|
25
|
+
### Package Managers
|
|
18
26
|
|
|
19
|
-
|
|
27
|
+
```bash
|
|
28
|
+
npm install -g sentry
|
|
29
|
+
pnpm add -g sentry
|
|
20
30
|
bun add -g sentry
|
|
21
31
|
```
|
|
22
32
|
|
|
23
|
-
|
|
33
|
+
### Run Without Installing
|
|
24
34
|
|
|
25
35
|
```bash
|
|
26
|
-
npx sentry
|
|
27
|
-
pnpm dlx sentry --help
|
|
28
|
-
yarn dlx sentry --help
|
|
29
|
-
bunx sentry --help
|
|
36
|
+
npx sentry@latest
|
|
30
37
|
```
|
|
31
38
|
|
|
32
|
-
##
|
|
39
|
+
## Quick Start
|
|
33
40
|
|
|
34
41
|
```bash
|
|
35
|
-
#
|
|
42
|
+
# Authenticate with Sentry
|
|
36
43
|
sentry auth login
|
|
37
|
-
```
|
|
38
44
|
|
|
39
|
-
|
|
45
|
+
# List issues (auto-detects project from your codebase)
|
|
46
|
+
sentry issue list
|
|
40
47
|
|
|
41
|
-
|
|
48
|
+
# Get AI-powered root cause analysis
|
|
49
|
+
sentry issue explain PROJ-ABC
|
|
42
50
|
|
|
43
|
-
|
|
44
|
-
sentry
|
|
51
|
+
# Generate a fix plan
|
|
52
|
+
sentry issue plan PROJ-ABC
|
|
45
53
|
```
|
|
46
54
|
|
|
55
|
+
## Features
|
|
56
|
+
|
|
57
|
+
- **DSN Auto-Detection** - Automatically detects your project from `.env` files or source code. No flags needed.
|
|
58
|
+
- **Seer AI Integration** - Get root cause analysis and fix plans directly in your terminal.
|
|
59
|
+
- **Monorepo Support** - Works with multiple projects, generates short aliases for easy navigation.
|
|
60
|
+
- **JSON Output** - All commands support `--json` for scripting and pipelines.
|
|
61
|
+
- **Open in Browser** - Use `-w` flag to open any resource in your browser.
|
|
62
|
+
|
|
47
63
|
## Commands
|
|
48
64
|
|
|
49
|
-
|
|
65
|
+
| Command | Description |
|
|
66
|
+
|---------|-------------|
|
|
67
|
+
| `sentry auth` | Login, logout, check authentication status |
|
|
68
|
+
| `sentry org` | List and view organizations |
|
|
69
|
+
| `sentry project` | List and view projects |
|
|
70
|
+
| `sentry issue` | List, view, explain, and plan issues |
|
|
71
|
+
| `sentry event` | View event details |
|
|
72
|
+
| `sentry api` | Make direct API requests |
|
|
50
73
|
|
|
51
|
-
|
|
52
|
-
sentry auth login # Login via OAuth device flow
|
|
53
|
-
sentry auth logout # Logout
|
|
54
|
-
sentry auth status # Check auth status
|
|
55
|
-
```
|
|
74
|
+
For detailed documentation, visit [cli.sentry.dev](https://cli.sentry.dev).
|
|
56
75
|
|
|
57
|
-
|
|
76
|
+
## Configuration
|
|
58
77
|
|
|
59
|
-
|
|
60
|
-
sentry org list # List all orgs
|
|
61
|
-
sentry org list --json # Output as JSON
|
|
62
|
-
sentry org view my-org # View organization details
|
|
63
|
-
sentry org view my-org -w # Open organization in browser
|
|
64
|
-
```
|
|
78
|
+
Credentials are stored in `~/.sentry/` with restricted permissions (mode 600).
|
|
65
79
|
|
|
66
|
-
|
|
80
|
+
---
|
|
67
81
|
|
|
68
|
-
|
|
69
|
-
sentry project list # List all projects
|
|
70
|
-
sentry project list my-org # List projects in org
|
|
71
|
-
sentry project list --platform javascript # Filter by platform
|
|
72
|
-
sentry project view my-project # View project details
|
|
73
|
-
sentry project view my-project -w # Open project in browser
|
|
74
|
-
```
|
|
82
|
+
## Development
|
|
75
83
|
|
|
76
|
-
###
|
|
84
|
+
### Prerequisites
|
|
77
85
|
|
|
78
|
-
|
|
79
|
-
sentry issue list --org my-org --project my-project # List issues
|
|
80
|
-
sentry issue list --org my-org --project my-project --json
|
|
81
|
-
sentry issue view 123456789 # View issue by ID
|
|
82
|
-
sentry issue view PROJ-ABC # View issue by short ID
|
|
83
|
-
sentry issue view 123456789 -w # Open issue in browser
|
|
84
|
-
```
|
|
86
|
+
- [Bun](https://bun.sh) v1.0+
|
|
85
87
|
|
|
86
|
-
###
|
|
88
|
+
### Setup
|
|
87
89
|
|
|
88
90
|
```bash
|
|
89
|
-
|
|
90
|
-
|
|
91
|
+
git clone https://github.com/getsentry/cli.git
|
|
92
|
+
cd cli
|
|
93
|
+
bun install
|
|
91
94
|
```
|
|
92
95
|
|
|
93
|
-
###
|
|
96
|
+
### Running Locally
|
|
94
97
|
|
|
95
98
|
```bash
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
+
# Run CLI in development mode
|
|
100
|
+
bun run dev --help
|
|
101
|
+
|
|
102
|
+
# With environment variables
|
|
103
|
+
bun run --env-file=.env.local src/bin.ts --help
|
|
99
104
|
```
|
|
100
105
|
|
|
101
|
-
|
|
106
|
+
### Scripts
|
|
102
107
|
|
|
103
108
|
```bash
|
|
104
|
-
bun
|
|
105
|
-
bun run
|
|
106
|
-
bun run
|
|
109
|
+
bun run build # Build for current platform
|
|
110
|
+
bun run typecheck # Type checking
|
|
111
|
+
bun run lint # Check for issues
|
|
112
|
+
bun run lint:fix # Auto-fix issues
|
|
113
|
+
bun test # Run tests
|
|
107
114
|
```
|
|
108
115
|
|
|
109
|
-
See [DEVELOPMENT.md](DEVELOPMENT.md) for detailed
|
|
116
|
+
See [DEVELOPMENT.md](DEVELOPMENT.md) for detailed setup and [CONTRIBUTING.md](CONTRIBUTING.md) for contribution guidelines.
|
|
110
117
|
|
|
111
|
-
##
|
|
118
|
+
## License
|
|
112
119
|
|
|
113
|
-
|
|
120
|
+
[FSL-1.1-Apache-2.0](LICENSE.md)
|