11# Development Guide
22
3- This guide explains how to develop and test the sry CLI and OAuth proxy locally.
3+ This guide explains how to develop and test the Sentry CLI and OAuth proxy locally.
44
55## Prerequisites
66
@@ -10,11 +10,11 @@ This guide explains how to develop and test the sry CLI and OAuth proxy locally.
1010## Project Structure
1111
1212```
13- sry /
13+ sentry-cli-next /
1414├── apps/
1515│ └── oauth-proxy/ # Hono server for device flow OAuth
1616└── packages/
17- └── cli/ # The sry CLI
17+ └── cli/ # The Sentry CLI
1818```
1919
2020## Setup
@@ -28,8 +28,8 @@ bun install
28282 . Create a ` .env ` file in the project root:
2929
3030```
31- SRY_CLIENT_ID =your-sentry-oauth-client-id
32- SRY_CLIENT_SECRET =your-sentry-oauth-client-secret
31+ SENTRY_CLIENT_ID =your-sentry-oauth-client-id
32+ SENTRY_CLIENT_SECRET =your-sentry-oauth-client-secret
3333```
3434
3535Get these from your Sentry OAuth application settings.
@@ -51,7 +51,7 @@ This starts the proxy on `http://127.0.0.1:8723` (matching your Sentry OAuth app
5151
5252``` bash
5353cd packages/cli
54- SRY_OAUTH_PROXY_URL =http://127.0.0.1:8723 bun run src/bin.ts auth login
54+ SENTRY_OAUTH_PROXY_URL =http://127.0.0.1:8723 bun run src/bin.ts auth login
5555```
5656
5757## Testing the Device Flow
@@ -62,7 +62,7 @@ SRY_OAUTH_PROXY_URL=http://127.0.0.1:8723 bun run src/bin.ts auth login
6262
6363``` bash
6464cd packages/cli
65- SRY_OAUTH_PROXY_URL =http://127.0.0.1:8723 bun run src/bin.ts auth login
65+ SENTRY_OAUTH_PROXY_URL =http://127.0.0.1:8723 bun run src/bin.ts auth login
6666```
6767
68683 . You'll see output like:
@@ -104,16 +104,16 @@ When creating your Sentry OAuth application, set:
104104
105105### OAuth Proxy
106106
107- | Variable | Description |
108- | ------------------- | ------------------------------ |
109- | ` SRY_CLIENT_ID ` | Sentry OAuth app client ID |
110- | ` SRY_CLIENT_SECRET ` | Sentry OAuth app client secret |
107+ | Variable | Description |
108+ | ---------------------- | ------------------------------ |
109+ | ` SENTRY_CLIENT_ID ` | Sentry OAuth app client ID |
110+ | ` SENTRY_CLIENT_SECRET ` | Sentry OAuth app client secret |
111111
112112### CLI
113113
114- | Variable | Description | Default |
115- | --------------------- | --------------- | ------------------------------ |
116- | ` SRY_OAUTH_PROXY_URL ` | OAuth proxy URL | ` https://sry-oauth.vercel.app ` |
114+ | Variable | Description | Default |
115+ | ------------------------ | --------------- | ------------------------------ |
116+ | ` SENTRY_OAUTH_PROXY_URL ` | OAuth proxy URL | ` https://sry-oauth.vercel.app ` |
117117
118118## Deploying the OAuth Proxy
119119
@@ -122,8 +122,8 @@ cd apps/oauth-proxy
122122bunx vercel
123123
124124# Set environment variables in Vercel dashboard or via CLI:
125- bunx vercel env add SRY_CLIENT_ID
126- bunx vercel env add SRY_CLIENT_SECRET
125+ bunx vercel env add SENTRY_CLIENT_ID
126+ bunx vercel env add SENTRY_CLIENT_SECRET
127127```
128128
129129After deployment, update the default ` OAUTH_PROXY_URL ` in ` packages/cli/src/lib/oauth.ts ` to your Vercel URL.
0 commit comments