Commit d1e555d
feat(install): add SENTRY_INIT env var to run wizard after install (#685)
## Summary
Lets users install the CLI and launch the setup wizard in one command:
```bash
curl -fsSL https://cli.sentry.dev/install | SENTRY_INIT=1 bash
```
After the normal install completes, resolves the installed binary by
checking the same candidate directories as the TS code
(`SENTRY_INSTALL_DIR` > `~/.local/bin` > `~/bin` > `~/.sentry/bin`),
then runs `sentry init </dev/tty`. The `</dev/tty` reopens stdin from
the terminal since `curl | bash` consumes it for the pipe.
Also adds `install` to the docs-preview workflow path filter — changes
to the install script weren't triggering preview builds because the
symlink in `docs/public/` doesn't match the `docs/**` glob.
## Test plan
- [ ] `curl -fsSL .../install | SENTRY_INIT=1 bash` — installs CLI, then
launches wizard with working interactive prompts
- [ ] `curl -fsSL .../install | bash` (without env var) — normal
install, no wizard
- [ ] Verify binary is found even when installed to `~/.sentry/bin`
(fallback path)
Closes #682
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 7e6689a commit d1e555d
2 files changed
+24
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| 96 | + | |
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
| |||
276 | 278 | | |
277 | 279 | | |
278 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
0 commit comments