š Create a FastAPI App in One Command with fastapi-new

š” What is fastapi-new?
fastapi-new is an official FastAPI project generator ā think of it as create-react-app or npm init next-app, but for FastAPI.
Itās built to work seamlessly with uv, Astralās modern package manager and Python runtime that makes environment management and dependency handling instant.
āļø Quickstart
1ļøā£ Install uv
Follow the installation guide for your system.
Itās a single command and takes seconds.
2ļøā£ Create a new FastAPI project
uvx fastapi-new awesomeapp
This will generate a new directory called awesomeapp containing:
A minimal FastAPI app
Pre-configured
uvenvironmentReady-to-run dev server setup
3ļøā£ Run your app
cd awesomeapp
uv run fastapi dev
Then open your browser and go to š http://localhost:8000
Youāll see your brand-new FastAPI app running! š
š§© Bonus: Initialize in an Existing Directory
Already have a directory and just want to drop in a FastAPI scaffold?
Run this instead:
uvx fastapi-new
Thatās it ā itāll set everything up right where you are.
ā¤ļø Why This Matters
This release might seem small, but itās part of a bigger story.
š
uvis redefining Python workflows ā faster installs, isolated environments, and simple commands.ā”
fastapi-newextends that to the FastAPI ecosystem ā making app creation nearly instant.š± It reflects the ongoing focus of FastAPI Labs on developer experience and performance.
You no longer need to think about setup, dependencies, or boilerplate. You can just start building.
š Resources
GitHub: fastapi/fastapi-new
Announcement Post: SebastiĆ”n RamĆrez on LinkedIn
Astralās
uv: GitHub Repo
FastAPI has always been about speed ā not just runtime performance, but developer speed. With fastapi-new, āHello, FastAPIā has gotten faster than ever. One command, one second, and youāre ready to build.
Hyperlink