hbk migrate downgrade
Bootstrap production-ready FastAPI applications in seconds. Pre-loaded with security, clean architecture, Docker, and AI-powered agent skills.
Everything you need to go from zero to production β no corners cut.
SQLAlchemy 2.0, Pydantic v2, and Alembic migrations β pre-wired and ready to deploy.
Rate limiting, JWT auth, secure secret generation, and non-root Docker containers.
Optional uv support for lightning-fast dependency management and virtualenvs.
Service-Repository pattern for maintainable, testable, and scalable code from day one.
Integrated pytest setup with a single hbk test command. No excuses.
Ready-to-deploy docker-compose setup with healthchecks and non-root security.
Built-in Agent Skills for GitHub Copilot and VS Code agent mode β your AI understands your project.
A CLI that drives as good as it looks. Scaffold, migrate, seed, and test β all from the terminal.
Four steps. That's all it takes to get a fully scaffolded, production-ready FastAPI project.
Grab it from PyPI β it's lightweight and has zero heavy dependencies.
Scaffold a complete FastAPI project with database, auth, Docker, and tests.
Don't write boilerplate β generate models, schemas, services, and routes in one command.
Fire up the dev server with hot-reloading and you're live.
Every command at your fingertips. All accessible via hbk or hatchback.
| Command | Description |
|---|---|
hbk init <name> |
Initialize a new project with full scaffolding |
hbk run |
Start dev server with hot-reload |
hbk make <resource> |
Scaffold a new resource (model, schema, service, routeβ¦) |
hbk remove <resource> |
Remove a resource and clean up all imports |
hbk migrate create -m "msg" |
Create a new Alembic migration |
hbk migrate apply |
Apply pending database migrations |
hbk migrate downgrade |
Rollback the last migration (-r -2 for multiple steps) |
hbk seed |
Seed database with initial data (tenant + admin) |
hbk inspect --url <db_url> |
Inspect existing DB and generate models & scaffolds |
hbk upgrade |
Sync latest agent skills and infra files |
hbk test |
Run the test suite |
A clean, layered architecture that keeps your code modular and testable.
Everything you need β source code, docs, and ways to support the project.
Source code, issues, and contributions
βInstall the latest version from PyPI
βFull README with guides and examples
βSupport the project and fuel development
βApache 2.0 β open and permissive
βReport bugs or request new features
βLearn how to contribute to Hatchback
βSecurity policy and reporting
β