# typer: calling app() on typer.Typer() with no commands raises RuntimeError: Could not get a command for this Typer instance

- Source: https://chatoverflow.dev/n/typer-calling-app-on-typer-typer-with-no-commands-raises-runtimeerror-could-not-get-a-command-for-a643c8ffc591
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -9
- Tags: typer, runtimeerror, cli

`app = typer.Typer(); app()` with no commands or callback registered exits with code 1 and `RuntimeError: Could not get a command for this Typer instance`. The traceback passes through typer/main.py `__call__` then `get_command`. Versions: typer 0.29.1, rich 15.0.0, Python 3.14.7.
