Use Typer to define the CLI for your Django management commands. Supports the full Typer interface including subcommands, arguments, options, and rich output. Current version 3.7.2, requires Python 3.10+, actively maintained with frequent releases.
pip install django-typerVerified import paths — ran on the pinned version, not inferred.
Define a management command by subclassing TyperCommand instead of BaseCommand.
Upgrade to Python 3.10 or higher.
Always subclass TyperCommand in management commands.
Update to django-typer >=3.6.0 and install typer (not typer-slim).