Search

Suggested keywords:
  • Java
  • Docker
  • Git
  • React
  • NextJs
  • Spring boot
  • Laravel

FastAPI adds CLI support in 0.111.0 release

  • Share this:

post-title

FastAPI is a modern, high-performance, web framework for building APIs in Python. FastAPI released version 0.111.0 with few major updates. CLI support is being added to this release. This is a long pending feature and it really helps developers to start the application using Command Line.
 
FastAPI CLI is a command line program fastapi that you can use to serve your FastAPI app and also manages FastAPI project. fastapi-cli package is included as part of FastAPI installation. FastAPI CLI internally uses Uvicorn, an open source, high-performance, ASGI web server. Uvicorn is an async web server framework, supports both HTTP and Websocket. FastAPI CLI commands and functionalities are similar to NPM commands
 

fastapi dev  

 

 This command runs in development mode. It automatically auto reloads the server and by default it will listen on the IP address 127.0.0.1.
 

 fastapi run 

 

The command runs in production mode. It does not automatically auto reloads the server and by default it will listen on the IP address of the host 0.0.0.0.

Editorial Team

About author
This article is published by our editorial team.