Python CLI Application Template

Generate a command-line application with Click/Typer, configuration, and packaging

6/11/2026
Prompt
Create a Python CLI application template for:

Application Name: {{APP_NAME}}
CLI Framework: {{FRAMEWORK}} (Click/Typer/argparse)
Features: {{FEATURES}}

Generate complete CLI structure:

1. **Entry Point (cli.py):**
   - Command group setup
   - Global options (verbose, config file)
   - Version flag
   - Help text formatting

2. **Commands (commands/):**
   - Subcommand organization
   - Command decorators
   - Option/argument definitions
   - Validation callbacks
   - Progress indicators
   - Rich output formatting

3. **Configuration (config.py):**
   - Config file loading (YAML/TOML/JSON)
   - Environment variable overrides
   - Default value handling
   - Config validation

4. **Utilities (utils/):**
   - Output formatting helpers
   - File operations
   - API client setup
   - Error handling

5. **Logging (logging_config.py):**
   - Configurable log levels
   - File and console handlers
   - Structured logging

6. **Packaging (pyproject.toml):**
   - Entry points configuration
   - Dependencies
   - Build system
   - Script definitions

7. **Testing (tests/):**
   - CLI runner tests
   - Command output assertions
   - Mock configurations

8. **Documentation:**
   - README with examples
   - Man page generation
   - Shell completion scripts

Include interactive prompts and confirmation dialogs.

Or press ⌘C to copy

Variables (3)

Replace these placeholders with your own content before using the prompt.

[{APP_NAME][{FRAMEWORK][{FEATURES]

Ready to use?

Copy and paste into your favorite AI tool

Test this prompt live

Try it in our AI Playground with Claude

Open Playground

Explore more Coding prompts

Browse Coding

Command Palette

Search for a command to run...