Summary
Use generateHelp from src/kilocode/help.ts to auto-generate CLI reference documentation, eliminating manual maintenance of the command table in cli.md and adding a full detailed reference page.
Problem
packages/kilo-docs/pages/code-with-ai/platforms/cli.md contains a hand-written command table that is already stale — lists kilo github (disabled), missing acp and help. Every command add/remove/rename requires a manual docs update that is easy to forget.
Design
Two generated artifacts, one source of truth:
- Quick reference table — a Markdoc partial (
cli-commands-table.md) included in the existing CLI docs page via {% partial %}. Replaces the hand-written table.
- Full CLI reference page — a standalone page (
cli-reference.md) with detailed help for every command and subcommand, generated by generateHelp({ all: true, format: "md" }).
Both are generated by script/generate.ts and auto-committed by the existing generate.yml workflow on push to dev.
Depends on
Status
🚧 Work in progress on branch feat/help-all-command
Summary
Use
generateHelpfromsrc/kilocode/help.tsto auto-generate CLI reference documentation, eliminating manual maintenance of the command table incli.mdand adding a full detailed reference page.Problem
packages/kilo-docs/pages/code-with-ai/platforms/cli.mdcontains a hand-written command table that is already stale — listskilo github(disabled), missingacpandhelp. Every command add/remove/rename requires a manual docs update that is easy to forget.Design
Two generated artifacts, one source of truth:
cli-commands-table.md) included in the existing CLI docs page via{% partial %}. Replaces the hand-written table.cli-reference.md) with detailed help for every command and subcommand, generated bygenerateHelp({ all: true, format: "md" }).Both are generated by
script/generate.tsand auto-committed by the existinggenerate.ymlworkflow on push todev.Depends on
kilo help --allfeature (PR feat: add kilo help --all command and auto-generated CLI reference docs kilo#571 / issue [FEATURE]: addkilo help --allto dump full CLI reference as markdown #6294)Status
🚧 Work in progress on branch
feat/help-all-command