Overview
Typer 0.15, released on December 3, 2024, allows extending apps without requiring a subcommand name.
Main Features
Extending without name
Applications can be composed without each sub-app having a subcommand prefix, enabling a flatter CLI.
python
import typer
app = typer.Typer()
users_app = typer.Typer()
@users_app.command()
def create(name: str):
print(f'Created user {name}')
# Add without name: commands at root level
app.add_typer(users_app)
# Result: python app.py create Alice
# instead of: python app.py users create Alice
