CLI Change Checklist¶
Use this checklist whenever a change adds, removes, renames, or changes
behavior for an sb command, option, argument, help string, default, or
output contract.
Required updates¶
- Update the command help at the Typer command definition.
- Update user-facing docs that mention the command, flag, output, or workflow.
-
Regenerate the committed UI schema:
-
Regenerate the auto-gen CLI reference (the published doc):
-
Run the schema + docs drift checks (both run on every PR in CI):
-
Check command-runner impact for commands that should be available in the web UI or Mac shell. The command runner reads
/cli/schema, which is backed bybrain/ui_schema/cli_schema.json. -
Add or update tests near the behavior being changed. For schema-only drift:
Recommended validation¶
Run the narrow command help first:
Then run the relevant feature tests. Before a release or broad CLI change:
Common failures¶
sb ui-schema --checkfails — regeneratebrain/ui_schema/cli_schema.jsonwithsb ui-schema --write-default, review the schema diff, rerun the affected UI or command-runner tests.make docs-checkfails —docs/reference/cli.mddrifted from the schema. Runmake docs-referenceto regenerate.