Skip to content
masterclass Buddy

FastAPI · Command

uvicorn

Run a FastAPI application with an ASGI server such as Uvicorn. Pass an import string like main:app, where main is the module and app is the FastAPI object.

Last updated

Syntax

uv run uvicorn main:app --host 0.0.0.0 --port 8000

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • fastapi run
  • Hypercorn
  • Daphne
  • Granian
  • ASGI
  • --reload

Source: Run a Server Manually - FastAPI. Checked 2026-11-03.