Typer: Build Great CLIs with Python Type Hints

0.24.1 · active · verified Sat Mar 28

Typer is a Python library for building command-line interfaces (CLIs) that are easy to code and based on Python type hints. The current version is 0.24.1, released on March 28, 2026. Typer follows a regular release cadence, with updates approximately every few months.

Warnings

Install

Imports

Quickstart

A minimal Typer application that greets the user by name.

import typer

app = typer.Typer()

@app.command()
def hello(name: str):
    print(f"Hello, {name}!")

if __name__ == "__main__":
    app()

view raw JSON →