# CLI Command Definition

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

- Skill: `shyamsridhar123/cli-command-definition` (Agent Skill)
- Install (CLI): `npx skillmds@latest add shyamsridhar123/cli-command-definition`
- Raw SKILL.md: https://api.skillmd.com/api/skills/shyamsridhar123/cli-command-definition/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: shyamsridhar123 (https://skillmd.com/u/shyamsridhar123)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/shyamsridhar123/cli-command-definition

---


# 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

