Dashboard › cli › Distillation
e4248531-a822-433e-98ef-b4f020550837["lore_tm_v1_gBj12RpcFPBsFypgGnOzMUjZ50aTubNPG31-CXoAp9o","lore_tm_v1_vVNcCS0rHZjpocVot2BC3EvPv1zNQIFaMOEQIRDPoqs","lore_tm_v1_n9vwydV21MNQ0k7C5XbMVDQ51f3kYakQS-zA0od35YY"]
buildListCommand() must always inject --fresh unless the command already defines the fresh flag.buildListCommand() is always the target using the org/project pattern./home/byk/Code/getsentry/cli-pr-1558/packages/cli/src/lib/list-command.ts shows buildListCommand() automatically calls applyFreshFlag(flags) before the original command function, intercepts the first positional argument with interceptSubcommand(), injects --cursor unless options.noCursorFlag is set or cursor already exists, injects -f → fresh unless options.noFreshAlias is set or f already exists, and injects -c → cursor unless cursor injection is opted out or c already exists./home/byk/Code/getsentry/cli-pr-1558/packages/cli/src/lib/command.ts defines SentryCommandFunction as returning AsyncGenerator<unknown, CommandReturn | void, undefined>; CommandReturn is captured and rendered after all yields are consumed.--json must yield one aggregate value when callers need one parseable JSON document; individual JSON chunks are pretty-printed rather than emitted as JSONL; early exits such as --web return without yielding.buildCommand() configuration semantics: supplying output?: OutputConfig<any> automatically injects --json and --fields; commands yield new CommandOutput(data), the wrapper handles JSON/human rendering, and void yields are ignored./home/byk/Code/getsentry/cli-pr-1558/packages/cli/src/lib/command.ts: auth?: boolean | "dsn" defaults to true; false is for unauthenticated commands such as auth login, auth logout, auth status, help, and cli upgrade; "dsn" is for DSN-authenticated commands such as event send and skips both the Bearer-token guard and .sentryclirc URL trust check..sentryclirc trust-check configuration: skipRcUrlCheck?: boolean defaults to false; commands that establish or tear down host trust, specifically auth login and auth logout, set it to true so they can run when a repo-local .sentryclirc URL mismatches the current token.