Scaffold new CLI commands in Lumen
new-commandskillsetup L1★8
Sardor-M/lumen ↗What it does
Generate new CLI command stubs
Best for
When adding new CLI subcommands to Lumen that follow register pattern, need offline operation, and must pass TypeScript type-checking.
Inputs
- · Command name
- · Description
- · Handler function
Outputs
- · CLI command scaffold
- · Registered command
Preconditions
- · Lumen CLI project
- · Commander.js framework
- · Handler function implemented
Failure modes
- · Missing try/catch in async action causes unhandled rejection
- · Command not registered in cli.ts remains invisible