Repository navigation
feat(cli): Add a sentry-cli that says it is now sentry to the installer - #2930
Merged
Merged
Conversation
v4's installer puts only `sentry` on PATH, so v3 scripts that call `sentry-cli` exit 127 with "command not found". The installer now also writes a POSIX sh `sentry-cli` next to `sentry`. It prints the same message as the v4 binary run as `sentry-cli` and the PyPI `sentry-cli` command (src/lib/sentry-cli-rename.ts), and exits 1. It never runs `sentry`. It is skipped when another `sentry-cli` is on PATH or already in the install directory, so a real v3 install stays. A marker line lets a later install replace its own copy. The old-glibc v3 fallback never reaches it, because install_v3 replaces the script. Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
BYK
approved these changes
Dec 5, 2026
14 tasks
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The get-cli installer (
curl https://cli.sentry.dev/install | sh) puts onlysentryon PATH, so v3 scripts that callsentry-clifail with "command not found". The installer now also writes a POSIX shsentry-clinext tosentry. It prints the same message as #2929 (the v4 binary run assentry-cli, and PyPI'ssentry-cli) and exits 1. It never runssentry.Before:
After:
sentry-cliis on PATH or already in the install directory, the installer leaves it alone, so a real v3 install stays. A marker line lets a later install replace its own copy.install_v3replaces the script before setup runs, so the realsentry-cli3.8.2 is never overwritten.sentry-clifunction and alias still take priority over the file on PATH.sentry cli uninstalldoes not remove the shim yet.via @BYK.
--
View Session [Sentry]