CLI Tooling
Build CLIs developers love: parsing, help, exit codes, prompts, and distribution.
Learning path
Build CLIs developers love: parsing, help, exit codes, prompts, and distribution.
Compare "Argument Parsing and the Command Structure" with "Help Text That Answers Questions" in "Building CLI Tools with Great Developer Experience" and state which trade-off you would accept in cli tooling code.
Next step: How to Build a CLI Tool with Node.js and Commander
⏱ 1h
Reconstruct the reasoning behind "How to Build a CLI Tool with Node.js and Commander" by tracing "Why Commander instead of manual parsing" to the failure it prevents in cli tooling systems.
Prerequisites: Building CLI Tools with Great Developer Experience
Next step: How to Build a CLI Tool with Go and Cobra
⏱ 1h
Read "How to Build a CLI Tool with Go and Cobra" for the "Create a testable project layout" argument, then name the decision in cli tooling work it would change.
Prerequisites: How to Build a CLI Tool with Node.js and Commander
Next step: Commander
⏱ 1h
Read "Commander"'s documented surface around ".command program.command(cmd, desc?, opts?): Command", then build a minimal endpoint and log the response.
Prerequisites: How to Build a CLI Tool with Go and Cobra
Next step: Click
⏱ 1h
Stand up "Click" for a cli tooling task, confirm "@click.command @click.command decorator" holds, and document one failure you triggered.
Prerequisites: Commander
Next step: Inquirer
⏱ 1h
Wire "Inquirer" into a scratch cli tooling project, following "input input(opts): Promise<string>", and record one working request/response pair.
Prerequisites: Click
Next step: Chalk
⏱ 1h
Read "Chalk"'s documented surface around "chalk.style chalk.color.bgColor.modifier(text): string", then build a minimal endpoint and log the response.
Prerequisites: Inquirer
Next step: Node.js CLI with Inquirer
⏱ 1h
Execute "Node.js CLI with Inquirer", change one constant, and describe how the output diverges from "Build an interactive CLI tool in Node.js using Inquirer for prompts, chalk for colored".
Prerequisites: Chalk
Next step: Case Converter
⏱ 0.75h
Run two different inputs through "Case Converter" and show where the outputs diverge.
Next step: JSON Formatter & Validator
⏱ 0.25h
Use "JSON Formatter & Validator" on a cli tooling sample, then check "json to formatted-json" against your manual result.
Prerequisites: Case Converter
Next step: Add a Dependency Lockfile Audit
⏱ 0.25h
Run "Prevent a vulnerable transitive dependency from reaching production without a reviewed" from "Add a Dependency Lockfile Audit" and confirm the documented result "The command reports high and critical advisories with the affected dependency paths.".
Prerequisites: JSON Formatter & Validator
Next step: Parse CLI Flags and Commands
⏱ 0.5h
In the "CLI Tooling" path, implement "Parse CLI Flags and Commands" so JSON object: { argv: string[], spec: { flags: { [name]: bool|string yields {flags:{verbose:true,out:dist},command:build,errors:[]}, including the second sample's edge case.
Prerequisites: Add a Dependency Lockfile Audit
Next step: Capstone: CLI Tooling
⏱ 0.42h
Build "Build a Dependency Graph CLI" through its phases, keeping "Manifest reader" independently testable.
Prerequisites: Add a Dependency Lockfile Audit, Parse CLI Flags and Commands
Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.
⏱ 4h