Examples (6)
Run a FastAPI app with automatic reload (for development)
fastapi run path/to/file.py --reloadServe your app in both development mode
fastapi dev path/to/file.pySet the app variable name (if not `app`) or specify a custom app directory
fastapi run path/to/file.py --app-dir path/to/app --app custom_app_nameDisplay help
fastapi --helpDisplay help for a subcommand
fastapi subcommand --helpmade by @shridhargupta | data from tldr-pages