{"repo":"fastapi/fastapi-cli","free":true,"listed":false,"github":"https://github.com/fastapi/fastapi-cli","clone":"git clone https://github.com/fastapi/fastapi-cli.git","description":"Run and manage FastAPI apps from the command line with FastAPI CLI. 🚀","language":"Python","stars":639,"topics":["cli","fastapi","typer","uvicorn"],"license":"MIT","category":"cli-tools","readme_excerpt":"FastAPI CLI --- Source Code : https://github.com/fastapi/fastapi-cli --- Run and manage FastAPI apps from the command line with FastAPI CLI. 🚀 Description FastAPI CLI is a command line program fastapi that you can use to serve your FastAPI app, manage your FastAPI project, and more. When you install FastAPI (e.g. with pip install \"fastapi[standard]\" ), it includes a package called fastapi-cli , this package provides the fastapi command in the terminal. To run your FastAPI app for development, you can use the fastapi dev command: That command line program called fastapi is FastAPI CLI . FastAPI CLI takes the path to your Python program and automatically detects the variable with the FastAPI (commonly named app ) and how to import it, and then serves it. For production you would use fastapi run instead. 🚀 Internally, FastAPI CLI uses Uvicorn , a high-performance, production-ready, ASGI server. 😎 fastapi dev When you run fastapi dev , it will run on development mode. By default, it will have auto-reload enabled, so it will automatically reload the server when you make changes to your code. This is resource intensive and could be less stable than without it, you should only use it for development. By default it will listen on the IP address 127.0.0.1 , which is the IP for your machine to communicate with itself alone ( localhost ). Before importing your app, fastapi dev sets the FASTAPI ENV environment variable to development . If FASTAPI ENV is already set, its existing value","default_branch":null,"files":null,"tree":[],"storefront":"/r/fastapi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fastapi/fastapi-cli/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}