FastAPI Admin CLI
A Django-inspired CLI tool for managing FastAPI applications with a modular structure and best practices.
- 🚀 Project scaffolding with batteries included
- 📦 Modular app structure like Django
- 🐳 Built-in Docker integration
- 🔄 Database migrations with Alembic
- 🔐 Authentication with FastAPI-Users
- 👤 Admin panel with SQLAdmin
Quick Install
Available Commands
Command | Description |
---|---|
startproject |
Create a new FastAPI project |
startapp |
Create a new app within the project |
docker build |
Build Docker containers |
docker run |
Run Docker containers |
docker down |
Stop and remove containers |
docker cmd "command" |
Run custom docker-compose commands |
db makemigrations |
Create database migrations |
db migrate |
Apply migrations (using alembic) |
db shell |
Open API container shell |
createsuperuser |
Create admin user |
shell |
Launch container shell |
Quick Start
-
Create a new project:
-
Set up environment:
-
Launch with Docker:
-
Create migrations:
-
Create admin user:
See the Quick Start Guide for more details.
Documentation
License
MIT License - see LICENSE