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.
Files changed (3) hide show
  1. package/README.md +73 -66
  2. package/dist/bin.cjs +223 -187
  3. package/package.json +3 -1
package/README.md CHANGED
@@ -1,113 +1,120 @@
1
- # sentry
1
+ <p align="center">
2
+ <img src=".github/assets/banner.png" alt="Sentry CLI" />
3
+ </p>
2
4
 
3
- A gh-like CLI for Sentry.
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 globally with your preferred package manager:
19
+ ### Install Script (Recommended)
8
20
 
9
21
  ```bash
10
- # npm
11
- npm install -g sentry
12
-
13
- # pnpm
14
- pnpm add -g sentry
22
+ curl -fsSL https://cli.sentry.dev/install | bash
23
+ ```
15
24
 
16
- # yarn
17
- yarn global add sentry
25
+ ### Package Managers
18
26
 
19
- # bun
27
+ ```bash
28
+ npm install -g sentry
29
+ pnpm add -g sentry
20
30
  bun add -g sentry
21
31
  ```
22
32
 
23
- Or run directly without installing:
33
+ ### Run Without Installing
24
34
 
25
35
  ```bash
26
- npx sentry --help
27
- pnpm dlx sentry --help
28
- yarn dlx sentry --help
29
- bunx sentry --help
36
+ npx sentry@latest
30
37
  ```
31
38
 
32
- ## Setup
39
+ ## Quick Start
33
40
 
34
41
  ```bash
35
- # Login via OAuth (device flow)
42
+ # Authenticate with Sentry
36
43
  sentry auth login
37
- ```
38
44
 
39
- You'll be given a URL and a code to enter. Once you authorize, the CLI will automatically receive your token.
45
+ # List issues (auto-detects project from your codebase)
46
+ sentry issue list
40
47
 
41
- Or use an API token directly:
48
+ # Get AI-powered root cause analysis
49
+ sentry issue explain PROJ-ABC
42
50
 
43
- ```bash
44
- sentry auth login --token YOUR_SENTRY_API_TOKEN
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
- ### Auth
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
- ```bash
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
- ### Organizations
76
+ ## Configuration
58
77
 
59
- ```bash
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
- ### Projects
80
+ ---
67
81
 
68
- ```bash
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
- ### Issues
84
+ ### Prerequisites
77
85
 
78
- ```bash
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
- ### Events
88
+ ### Setup
87
89
 
88
90
  ```bash
89
- sentry event view abc123def # View event by ID
90
- sentry event view abc123def -w # Open event in browser
91
+ git clone https://github.com/getsentry/cli.git
92
+ cd cli
93
+ bun install
91
94
  ```
92
95
 
93
- ### API
96
+ ### Running Locally
94
97
 
95
98
  ```bash
96
- sentry api /organizations/ # GET request
97
- sentry api /issues/123/ --method PUT --field status=resolved
98
- sentry api /organizations/ --include # Show headers
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
- ## Development
106
+ ### Scripts
102
107
 
103
108
  ```bash
104
- bun install
105
- bun run --env-file=.env.local src/bin.ts --help # Run CLI in dev mode
106
- bun run build # Build binary
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 development instructions.
116
+ See [DEVELOPMENT.md](DEVELOPMENT.md) for detailed setup and [CONTRIBUTING.md](CONTRIBUTING.md) for contribution guidelines.
110
117
 
111
- ## Config
118
+ ## License
112
119
 
113
- Stored in `~/.sentry/config.json` (mode 600).
120
+ [FSL-1.1-Apache-2.0](LICENSE.md)