Dashboard › cli › Distillation
bba538b9-fa0d-44d3-81c7-f254ac9797d6["lore_tm_v1_9MIfTq_84g5vx4D02_BqeGdW0UbQhPLOfz5OLAAHgN4","lore_tm_v1_Od_6hthDPUy1MdGPTDCifcu0hm_8Pv_0-icSMlPyxk8","lore_tm_v1_qrRBngp4EfEzWkv4Tx83VBAsQKyh-WYMCxlYPkXOyD0"]
Date: Sep 10, 2026
CommandReturn return value, never on individual yields, in /home/byk/Code/getsentry/cli-pr-1558/packages/cli/src/lib/command.ts.ALWAYS_STRIP = new Set([LOG_LEVEL_KEY]).CommandOutput<T> and may return { hint }; streaming commands render each yield immediately, but --json commands must yield one aggregate value when callers need one parseable JSON document because individual JSON chunks are pretty-printed rather than JSONL; void commands may return without yielding for early exits such as --web./home/byk/Code/getsentry/cli-pr-1558/packages/cli/src/lib/command.ts defines CommandExample with readonly description and complete command fields, and extends native Stricli docs as CommandDocumentation with optional readonly examples.customUsage[0] as the canonical signature suffix; later customUsage lines may document equivalent forms.prepareNativeDocs() renders each example as ${command} # ${description} under an Examples: section, while attachDocumentationMetadata() stores canonical usage as __primaryUsage and examples as __examples.enrichDocsWithSchema() appends JSON field names and types to fullDescription when outputConfig.schema produces at least one field; command-owned examples are prepared before schema enrichment so JSON fields remain at the end of native help.GLOBAL_FLAG_DEFAULTS contains [LOG_LEVEL_KEY]: LOG_LEVEL_FLAG, verbose: VERBOSE_FLAG, org: ORG_FLAG, and project: PROJECT_FLAG.mergeGlobalFlags() preserves command-owned global flags, injects missing defaults, and adds injected keys to stripKeys; it separately records commandOwnsOrg and commandOwnsProject. When an output config exists, it injects json: JSON_FLAG only if the command does not own json, and always sets fields = buildFieldsFlag(outputConfig).buildCommand() derives global short aliases from GLOBAL_FLAGS; an alias is injected only when the command does not define the corresponding flag and the short alias is not already present.buildCommand from the local command module rather than directly from @stricli/core, because direct Stricli imports bypass telemetry and global flag handling.