← All Learning Paths

CLI Tooling

Build CLIs developers love: parsing, help, exit codes, prompts, and distribution.

technicalintermediate13 nodes13.67h total

Learning path

Build CLIs developers love: parsing, help, exit codes, prompts, and distribution.

  1. 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.

    Completion criteria: Record a short walkthrough of "Building CLI Tools with Great Developer Experience" with timestamps at "Argument Parsing and the Command Structure" and "Help Text That Answers Questions", plus the commit that applies it.

    Next step: How to Build a CLI Tool with Node.js and Commander

    ⏱ 1h

  2. 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

    Completion criteria: Write a five-line decision note citing "Why Commander instead of manual parsing" from "How to Build a CLI Tool with Node.js and Commander", name the option you rejected, and attach the before/after diff of one file you changed.

    Next step: How to Build a CLI Tool with Go and Cobra

    ⏱ 1h

  3. 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

    Completion criteria: Attach a one-page summary that quotes "Create a testable project layout", lists two trade-offs, and links the commit where you applied it.

    Next step: Commander

    ⏱ 1h

  4. 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

    Completion criteria: Attach one successful call and one invalid call against "Commander", citing ".command program.command(cmd, desc?, opts?): Command" as the documented surface.

    Next step: Click

    ⏱ 1h

  5. Stand up "Click" for a cli tooling task, confirm "@click.command @click.command decorator" holds, and document one failure you triggered.

    Prerequisites: Commander

    Completion criteria: Run a request against "Click", paste the response, and add one deliberately invalid call with its error.

    Next step: Inquirer

    ⏱ 1h

  6. Wire "Inquirer" into a scratch cli tooling project, following "input input(opts): Promise<string>", and record one working request/response pair.

    Prerequisites: Click

    Completion criteria: Attach one successful call and one invalid call against "Inquirer", citing "input input(opts): Promise<string>" as the documented surface.

    Next step: Chalk

    ⏱ 1h

  7. 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

    Completion criteria: Run a request against "Chalk", paste the response, and add one deliberately invalid call with its error.

    Next step: Node.js CLI with Inquirer

    ⏱ 1h

  8. 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

    Completion criteria: Attach the terminal transcript for "Node.js CLI with Inquirer": command, exit code, and the printed result you used to confirm "Build an interactive CLI tool in Node.js using Inquirer for prompts, chalk for colored".

    Next step: Case Converter

    ⏱ 0.75h

  9. Run two different inputs through "Case Converter" and show where the outputs diverge.

    Completion criteria: Run two inputs through "Case Converter", record both outputs, and show one case where "text to text" changes as expected.

    Next step: JSON Formatter & Validator

    ⏱ 0.25h

  10. Use "JSON Formatter & Validator" on a cli tooling sample, then check "json to formatted-json" against your manual result.

    Prerequisites: Case Converter

    Completion criteria: Run two inputs through "JSON Formatter & Validator", record both outputs, and show one case where "Format, beautify, and validate JSON data with configurable indentation." changes as expected.

    Next step: Add a Dependency Lockfile Audit

    ⏱ 0.25h

  11. 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

    Completion criteria: Run "Add a Dependency Lockfile Audit" twice — once as written and once with a changed input — and attach both transcripts with the observed difference.

    Next step: Parse CLI Flags and Commands

    ⏱ 0.5h

  12. 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

    Completion criteria: Attach the solution file for "CLI Tooling", two passing sample runs, and one failing run whose error matches the contract.

    Next step: Capstone: CLI Tooling

    ⏱ 0.42h

  13. 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

    Completion criteria: Deliver "Manifest reader" and paste the test output where the acceptance test passes; include the test name and command.

    Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.

    ⏱ 4h