Modern Python CLI application template built with Typer, Rich, Pydantic, and comprehensive development tools.
# Set your CLI name
NEW_NAME="mycli"
# Download and extract the template, then rename it
curl -L https://github.com/durandom/b4cli/archive/main.tar.gz | tar -xz
mv b4cli-main $NEW_NAME && cd $NEW_NAME
# Rename everything in 3 commands
find . -name "*b4cli*" | while read f; do mv "$f" "${f//b4cli/$NEW_NAME}"; done
find . -type f \( -name "*.py" -o -name "*.md" -o -name "*.toml" \) -exec sed -i '' "s/b4cli/$NEW_NAME/g" {} +
uv sync --group dev && uv run $NEW_NAME --help# Install dependencies
uv sync --group dev
# Run CLI
uv run b4cli
# Run tests
uv run pytest
# Code quality
uv run ruff check && uv run ruff format
# Run with logging
uv run b4cli -v example helloCreative Commons Attribution-NonCommercial 4.0 - Free for personal/educational use, no commercial use.