Repository navigation
docs(cli): Correct auth, search, log ID, and sourcemap docs drift - #2104
Draft
sentry-junior[bot] wants to merge 2 commits into
Draft
sentry-junior[bot] wants to merge 2 commits into
sentry-junior[bot] wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This branch was previously 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.
Summary
Updates the CLI docs to match recent behavior changes in auth, org resolution, search-mode matching, log ID recovery, sourcemap upload, and
set-commits.What changed
SENTRY_SETUP_CODEis set,sentry cli setup(run by both installers) redeems the code if no login is stored yet. On an existing install,sentry auth bootstrapdoes the same (feat(cli): Authenticate headless installs with setup codes #1873,src/commands/cli/setup.ts,src/lib/setup-code.ts). The generatedsentry-cliSKILL.md picks up the new example.sentry auth login <email>:<server>sets--urland trusts the host, so--urlis no longer the only way to do this (applyLoginTargetinsrc/commands/auth/login.ts).SENTRY_ORGisn't set, the org from an organization auth token (sntrys_…) is used (resolveFromEnvVarsinsrc/lib/resolve-target.ts, fix(cli): Use the org from an org auth token when none is set (CLI-3B) #1938).org listfilter: search mode matches letters in order (fwfindsfrontend-web), and its typo tier starts at four characters. The old "one or two characters match literal text only" claim no longer holds (src/lib/fuzzy.ts, feat(cli): Score search mode the same way as the Junior quick switcher #2092/feat(cli): Treat camelCase capitals as word starts in search mode #2099).log view: a partial ID of 8 or more hex characters is looked up among the project's logs from the last 30 days, instead of being rejected (src/commands/log/view.ts,src/lib/hex-id-recovery.ts).sourcemap: theuploadtarget can be a glob (fix(cli): Accept glob patterns as the sourcemap upload target #1934). The zero-pairs hints now include the Next.js advice the CLI prints (fix(cli): Give Next.js advice when no sourcemaps are found #1937,sourcemapSettingHint).release set-commits: default mode also falls back to local git when auto-discovery can't match the repository inside a git checkout (src/commands/release/set-commits.ts).debug-files find:wasmadded to the--typelist (FIND_DIF_TYPES).Validation
All passed on the final diff:
pnpm --filter sentry run generate:schemapnpm --filter sentry run generate:docspnpm --filter sentry-cli-docs run buildpnpm --filter sentry-cli-docs run test(18 passed, 1 skipped)pnpm run ci:policyinpackages/clivitest run test/script/fragment-commands.test.ts test/script/generate-skill-markdown.test.ts(27 tests)via automation
sched_da01977360ffd8adf17e9bd854330ca0· Run IDsched_da01977360ffd8adf17e9bd854330ca0:1794229200000.--
View Session [Sentry]