cli-creation
Installation
SKILL.md
CLI Creation
Overview
Create runnable DreamCLI starter CLIs and extend them with typed command patterns. Use this skill for user-facing app code, not DreamCLI framework internals.
Quick Start
- Choose a starter mode:
single: one root command (cli(name).default(command)).multi: grouped command surface (group('...').command(...)).
- Generate starter files:
python scripts/scaffold_cli.py --name mycli --mode single --out .- Tests are generated by default; add
--no-testonly when explicitly requested. - Test template is auto-detected: Bun without Vitest uses
bun:test; otherwise a Vitest template is generated.
- Run and validate generated files:
- Use the printed path from the scaffolder output, for example
bun ./mycli.ts --help. - Run the generated test unless
--no-testwas used.
- Use the printed path from the scaffolder output, for example