# fastapi/typer

Typer, build great CLIs. Easy to code. Based on Python type hints.

Repository: https://github.com/fastapi/typer
Canonical: https://ross.abutalabs.com/products/typer
Homepage: https://typer.tiangolo.com/
Language: Python
License: MIT
License Family: permissive
Topics: cli, click, python3, typehints, terminal, shell, python, typer
Last push: 2026-08-25T18:38:52+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 96, longevity 100
- inputs: {"age_days": 2444, "days_push": 8, "days_rel": 30, "gap_med": 4.0, "n_releases_24m": 45}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 19929, forks 975 (observed 2026-08-28T04:11:29.385021+00:00)

## What it is
Typer is a Python library for building command-line interface applications based on standard Python type hints, built on top of Click. It also ships a `typer` command that converts plain Python scripts into CLIs automatically.

## Use cases
- build a cli tool in python
- create command line app with subcommands
- add shell completion to my cli
- turn a python script into a cli
- argparse alternative with type hints
- build cli with automatic help and options

## When to choose
- you want CLI apps driven by Python type hints with excellent editor autocompletion
- you need automatic help, subcommands, and shell completion for Bash, Zsh, Fish, and PowerShell
- you like FastAPI's design and want the same developer experience for CLIs

## When to avoid
- you need a CLI framework outside the Python ecosystem
- you require fine-grained low-level control that Click exposes directly and Typer abstracts away
- you are building a GUI or web application rather than a terminal tool

## Facets
- artifact type: library
- maturity: stable
- function: cli, developer-tools
- domain: developer-tools
- platform: python, cli, cross-platform
- tags: type-hints, click, shell-completion, subcommands, script-runner, command-line, python

## Member repositories
- fastapi/typer (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:29.385021+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:59:23.890262+00:00, confidence not recorded.
  - readme: https://github.com/fastapi/typer (fetched 2026-08-28T04:11:29.385021+00:00, sha d411243f6e00)
  - homepage: https://typer.tiangolo.com/ (fetched 2026-08-29T07:57:58.909509+00:00, sha 507b8d46e78d)
  - site_page: https://typer.tiangolo.com/features (fetched 2026-08-29T07:57:58.918988+00:00, sha 754778f41e2d)
  - site_page: https://typer.tiangolo.com/about (fetched 2026-08-29T07:57:58.920951+00:00, sha d588016e6844)
  - site_page: https://typer.tiangolo.com/tutorial/install (fetched 2026-08-29T07:57:58.922604+00:00, sha 05dab5ba9b38)
  - registry_pypi: https://pypi.org/pypi/typer/json (fetched 2026-08-29T07:57:58.924196+00:00, sha cd3eebdb1325)
- Data as of 2026-08-30T08:39:29.467469+00:00.
