Skip to content
masterclass Buddy

FastAPI · Command

fastapi run

Run an ASGI server with an import string such as main:app. This tells the server to import app from main.py and serve it on the selected host and port.

Last updated

Syntax

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

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

Subscribe
  • fastapi run
  • fastapi dev
  • Uvicorn
  • ASGI server
  • FastAPI CLI

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