feat(install): add SENTRY_INIT env var to run wizard after install#685
feat(install): add SENTRY_INIT env var to run wizard after install#685
Conversation
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨
Bug Fixes 🐛Dashboard
Other
Internal Changes 🔧
🤖 This preview updates automatically when you update the PR. |
5245bcd to
67e56c8
Compare
|
6b6df40 to
8b97caa
Compare
8b97caa to
85afd5f
Compare
85afd5f to
19f5d97
Compare
f6b769c to
086c091
Compare
98608e3 to
bcdb083
Compare
Codecov Results 📊✅ 134 passed | Total: 134 | Pass Rate: 100% | Execution Time: 0ms 📊 Comparison with Base Branch
✨ No test changes detected All tests are passing successfully. ✅ Patch coverage is 100.00%. Project has 1476 uncovered lines. Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 95.43% 95.46% +0.03%
==========================================
Files 223 223 —
Lines 32511 32520 +9
Branches 0 0 —
==========================================
+ Hits 31027 31044 +17
- Misses 1484 1476 -8
- Partials 0 0 —Generated by Codecov Action |
bcdb083 to
0aef5ad
Compare
curl -fsSL https://cli.sentry.dev/install | SENTRY_INIT=1 bash The binary now reopens /dev/tty itself when stdin is not a TTY, so clack prompts receive keypress events even when launched from a pipe. Falls back gracefully in CI/containers where /dev/tty is unavailable. Closes #682 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0aef5ad to
82b85ce
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 82b85ce. Configure here.

Summary
Lets users install the CLI and launch the setup wizard in one command:
curl -fsSL https://cli.sentry.dev/install | SENTRY_INIT=1 bashAfter 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 runssentry init </dev/tty. The</dev/ttyreopens stdin from the terminal sincecurl | bashconsumes it for the pipe.Also adds
installto the docs-preview workflow path filter — changes to the install script weren't triggering preview builds because the symlink indocs/public/doesn't match thedocs/**glob.Test plan
curl -fsSL .../install | SENTRY_INIT=1 bash— installs CLI, then launches wizard with working interactive promptscurl -fsSL .../install | bash(without env var) — normal install, no wizard~/.sentry/bin(fallback path)Closes #682