Dashboard › cli › Distillation
f5894e70-081f-4d65-92eb-b7103f286036["lore_tm_v1_3OX6IbkE5F-8TJ3IICLXl4RT6fQpi8RUZxdAADwU_jU","lore_tm_v1_PGvfvxhPd3p90p4mkfwwE0Xn4s9eGgx86cfzELucgPs"]
packages/cli/script/generate-command-docs.ts reads command fragments from ${FRAGMENTS_DIR}/${fragmentName}.md via readCustomContent() and top-level fragments from ${FRAGMENTS_ROOT}/${fragmentName}.md via readTopLevelFragment(); both use UTF-8 and return an empty string when reading fails.packages/cli/script/generate-command-docs.ts builds routeInfos with extractAllRoutes(routeMap).filter((r) => !SKIP_ROUTES.has(r.name)), ensures DOCS_DIR exists recursively, and removes the legacy ${DOCS_DIR}/cli directory with rmSync(..., { recursive: true, force: true }).${DOCS_DIR}/${route.name}.md page per non-skipped route; generatePage(route) output is followed by the routeβs hand-written fragment when present, otherwise a trailing newline is added, and each written path is recorded in generatedFiles.packages/cli/script/generate-command-docs.ts regenerates INDEX_PATH with frontmatter title Commands, description Available commands in the Sentry CLI, introductory text, an ## Available Commands section from generateCommandsTable(routeInfos), and GENERATED_END_MARKER; the index command fragment is appended afterward when present.CONFIG_PATH by generateConfigurationPage(ENV_VAR_REGISTRY) and then appending the top-level configuration.md fragment when present.Generated ${generatedFiles.length} command doc pages + ${INDEX_PATH} + ${CONFIG_PATH}./home/byk/Code/getsentry/cli-pr-1558/packages/cli: 4 test files passed and all 128 tests passed; duration was 15.13s, with transform 18.57s, setup 650ms, import 25.88s, tests 7.58s, and environment 7ms; run started at 21:57:09.test.poolOptions was removed in Vitest 4 and that its former settings are now top-level options, referencing https://vitest.dev/guide/migration#pool-rework.--org to SENTRY_ORG and --project to SENTRY_PROJECT, including values my-org, my-proj, new, my-project, new-org, sentry, cli, new-proj, flag-org, and flag-proj.