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

Cover Image for šŸš€ 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 uv environment

  • Ready-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.

  • šŸŒ€ uv is redefining Python workflows — faster installs, isolated environments, and simple commands.

  • ⚔ fastapi-new extends 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

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.