CLI Command Definition

Define CLI commands, arguments, and options using commander with styled banners and versioning.

shyamsridhar123 4af86dc 864 B Updated

File contents

Cli Command Definition

Define CLI commands, arguments, and options using commander with styled banners and versioning.

When to Use

Use this skill when:

  • Working with code in src\main.ts/
  • User mentions "cli"
  • User mentions "command"
  • User mentions "commander"
  • User mentions "agentsmith"
  • User mentions "main"

Patterns

  • commander program setup with .command().argument().option().action()
  • chalk-based banner and colored output
  • semantic versioning via .version() and help text via .addHelpText()

Examples

program.command("assimilate").argument("<target>").option("-n, --dry-run").action(assimilateCommand);

Category

architecture - Structural patterns and system design

shyamsridhar123/agentsmith-cli/tree/main/.github/skills/cli-command-definition commit 4af86dc100

Frequently asked questions

npx skillmds@latest add shyamsridhar123/cli-command-definition