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 80In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
fastapi runfastapi devUvicornASGI serverFastAPI CLI