Building Beautiful Automation CLIs with Typer and Rich in 2026
Typer + Rich lets you create professional CLIs with almost zero effort.
Example CLI Tool
import typer
from rich.console import Console
from rich.progress import track
app = typer.Typer()
console = Console()
@app.command()
def process_files(folder: str):
console.print(f"[bold green]Processing folder:[/] {folder}")
for file in track(list(Path(folder).glob("*.csv")), description="Processing..."):
# process file
pass
if __name__ == "__main__":
app()
Conclusion
Your automation tools will look and feel premium with Typer + Rich.