|
4 | 4 |
|
5 | 5 | `sentry wizard` sets up the Sentry SDK in the project in the current |
6 | 6 | directory. It asks a few questions, installs the SDK for your framework, |
7 | | -writes its configuration, and sets up source map or debug file uploads. |
8 | | -Pass `-i` with an integration, such as `nextjs`, to skip the integration |
9 | | -picker. |
| 7 | +writes its configuration, and sets up source map or debug file uploads. It |
| 8 | +takes an optional `<org>/<project>` first, then an optional integration: |
| 9 | + |
| 10 | +- Pass an integration, such as `nextjs`, to skip the integration picker. |
| 11 | +- Pass `<org>/<project>` first to skip the org and project pickers, or |
| 12 | + `<org>/` to pick only the project. Without it, the wizard asks; it doesn't |
| 13 | + detect a project from your files. |
| 14 | +- An integration id is never read as a project or org, and a single bare |
| 15 | + word is always read as an integration. Write a project or org with a `/`: |
| 16 | + `my-org/my-project`, `my-org/`, or `/my-project`. For a project spelled |
| 17 | + like an integration, write `my-org/nextjs`. |
| 18 | +- `-f`/`--force` changes a project with uncommitted changes without asking, |
| 19 | + and installs the SDK even when the package manager's checks fail. |
10 | 20 |
|
11 | 21 | It logs in with your `sentry auth login` account, or starts a login when you |
12 | | -have none, and lets you pick or create the Sentry project to send data to. |
13 | | -Pass `--org` and `--project` to skip those questions. |
| 22 | +have none, on the Sentry instance the rest of the CLI uses: `SENTRY_URL`, or |
| 23 | +the stored login's. To use a self-hosted instance, log in to it first with |
| 24 | +`sentry auth login --url`. |
| 25 | + |
| 26 | +Set `SENTRY_SPOTLIGHT=1` to set up Spotlight for local development instead, |
| 27 | +with no Sentry account or login. Telemetry follows the CLI's settings |
| 28 | +(`SENTRY_CLI_NO_TELEMETRY`, `DO_NOT_TRACK`, `sentry cli defaults`), and the |
| 29 | +global `--verbose` flag shows the wizard's debug output. |
14 | 30 |
|
15 | 31 | `sentry wizard` changes your project's files. To have a coding agent set up |
16 | 32 | Sentry instead, run `sentry init`, which prints the agent's setup guide and |
17 | 33 | changes nothing. |
18 | 34 |
|
19 | 35 | ## Coming from `@sentry/wizard` |
20 | 36 |
|
21 | | -`sentry wizard` takes the same integrations and flags as |
22 | | -`npx @sentry/wizard`, so `npx @sentry/wizard -i nextjs` and |
23 | | -`sentry wizard -i nextjs` do the same thing. These were removed: |
24 | | - |
25 | | -- The sign-up flags `--signup`, `--promo-code` and `--coming-from`. Passing one |
26 | | - fails with an explanation. Sign up at https://sentry.io/signup/ (and apply a |
27 | | - promo code there), then run the wizard. |
28 | | -- The Cordova and Electron wizards. Follow their setup guides in the Sentry |
29 | | - docs instead. |
| 37 | +`sentry wizard` takes the same integration ids as `npx @sentry/wizard -i`, |
| 38 | +but not its flags or `SENTRY_WIZARD_*` environment variables: |
| 39 | + |
| 40 | +| `@sentry/wizard` | `sentry wizard` | |
| 41 | +| -------------------------------------- | ------------------------------------------------ | |
| 42 | +| `-i nextjs` | `nextjs` | |
| 43 | +| `--org my-org --project my-project` | `my-org/my-project`, before the integration | |
| 44 | +| `--url`, `-u`, `--saas` | `sentry auth login --url`, or `SENTRY_URL` | |
| 45 | +| `--spotlight` | `SENTRY_SPOTLIGHT=1` | |
| 46 | +| `--force-install`, `--ignore-git-changes` | `-f`/`--force` | |
| 47 | +| `--disable-telemetry` | `SENTRY_CLI_NO_TELEMETRY=1` or `DO_NOT_TRACK=1` | |
| 48 | +| `--debug` | `--verbose` or `--log-level debug` | |
| 49 | +| `--signup`, `--promo-code`, `--coming-from` | Sign up at https://sentry.io/signup/ first | |
| 50 | + |
| 51 | +The Cordova and Electron wizards were retired. Follow their setup guides in |
| 52 | +the Sentry docs instead. |
0 commit comments