Search docs

Templates

CLI Application

Generate a command-line application scaffold.

Best for: developer tools, automation commands, project generators, setup wizards.

Prompts:

text
? Choose CLI Type (Use arrow keys)
 » utility
   interactive

? Choose a framework (Use arrow keys)
 » typer
   click
   argparse

? Choose extras (space to toggle, enter to confirm)
 ● ruff
 ● pytest
 ○ github-actions
 ○ pre-commit
 ○ mypy

Available extras: ruff pytest github-actions pre-commit mypy

Run it:

bash
cd my-cli
uv run python -m src.main hello       # Utility
uv run python -m src.main greet       # Interactive

Captured project structure#

These paths come from the verified Spawn v1.2.0 cli capture (12 files). This recorded run used --no-git --no-uv; selecting setup tools can add files.

text
ledger-cli/
├── .gitignore
├── .spawn/
│   └── meta.json
├── AGENTS.md
├── CHANGELOG.md
├── LICENSE
├── README.md
├── src/
│   ├── __init__.py
│   ├── commands/
│   │   └── __init__.py
│   ├── main.py
│   └── utils/
│       └── __init__.py
└── tests/
    ├── __init__.py
    └── test_cli.py
ESC