Scaffolding tool for the Bluefox Stack — one command to generate a complete FastAPI project with auth, Postgres, and Redis.
Project description
bluefox-cli
Scaffolding tool for the Bluefox Stack — one command to generate a complete, ready-to-run FastAPI project with auth, Postgres, and Redis.
Part of the Bluefox Stack.
Install
uv tool install bluefox-cli
This makes bluefox (and the bfx alias) available globally.
Quick start
bluefox init myapp
cd myapp
bfx db migrate initial
bfx dev
bfx dev starts Postgres, Redis, runs migrations, and launches the app with hot reload. Visit http://localhost:8000 to see the welcome page with a message playground and auth panel.
What it generates
myapp/
main.py # App factory with BluefoxAuth
models.py # Root-level models (auto-discovered)
items/ # Example module (auto-discovered)
api.py # Router → auto-mounted at /items
models.py # Item model → auto-discovered
Makefile # dev, test, migrate, run
Dockerfile # Multi-stage uv build
docker-compose.yml # Production on dokploy-network
docker-compose.dev.yml # Local Postgres + Redis + hot reload
alembic.ini # Migration config
migrations/ # Alembic migrations
tests/ # bluefox-test fixtures + smoke test
CLI commands
| Command | Description |
|---|---|
bluefox init <name> |
Scaffold a new project |
bfx dev |
Start Postgres + Redis + app with hot reload |
bfx db migrate <name> |
Generate a migration (spins up temp Postgres) |
What you get
- FastAPI app with
bluefox-coresettings and app factory - Authentication via
bluefox-auth— JWT tokens, cookie sessions, user management - SQLAlchemy models with auto-discovery — just add
models.pyin any directory - Alembic migrations configured with one line via
configure_alembic() - Docker Compose for production (dokploy-network) and dev (local Postgres + Redis)
- Multi-stage Dockerfile with uv — small production images
- Test suite with
bluefox-test— real Postgres via testcontainers, SAVEPOINT isolation - Auto-discovery — routers in
*/api.pyand models in*/models.pyare found automatically
Documentation
Full docs at bluefox-cli.bluefox.software/docs/
- Getting started — walkthrough of your first project
- Generated files — what each file does
- CLI commands —
bfx dev,bfx db migrate - Adding models — auto-discovery convention
- Deployment — deploying with Dokploy
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bluefox_cli-0.5.4.tar.gz.
File metadata
- Download URL: bluefox_cli-0.5.4.tar.gz
- Upload date:
- Size: 75.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18805e684f6ed82a4ad3168f2ffff487c9fba894e4de28b9250825d11af1fb5e
|
|
| MD5 |
3015e8c273989aae732a0444f77f7731
|
|
| BLAKE2b-256 |
ca0d7d53a9d8eb3ee6cfdd03fce7202cd463b63d514b20e64fe72d1ef0944347
|
Provenance
The following attestation bundles were made for bluefox_cli-0.5.4.tar.gz:
Publisher:
publish.yml on blue-fox-software/bluefox-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bluefox_cli-0.5.4.tar.gz -
Subject digest:
18805e684f6ed82a4ad3168f2ffff487c9fba894e4de28b9250825d11af1fb5e - Sigstore transparency entry: 1108508575
- Sigstore integration time:
-
Permalink:
blue-fox-software/bluefox-cli@a8b705f6f3c4caebc9c75d891a463477c9c23f3d -
Branch / Tag:
refs/tags/v0.5.4 - Owner: https://github.com/blue-fox-software
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a8b705f6f3c4caebc9c75d891a463477c9c23f3d -
Trigger Event:
push
-
Statement type:
File details
Details for the file bluefox_cli-0.5.4-py3-none-any.whl.
File metadata
- Download URL: bluefox_cli-0.5.4-py3-none-any.whl
- Upload date:
- Size: 31.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a66ee5dc322cb8d6dde221995f814609af0574159d4846be05fb6542845e259
|
|
| MD5 |
f16f89cf411dceaadeffc2663b5c99d9
|
|
| BLAKE2b-256 |
ff2852dd18e5eb6eb4f799c2864fa5785c795a74ac2a2fcc12fdbfb8a51abac2
|
Provenance
The following attestation bundles were made for bluefox_cli-0.5.4-py3-none-any.whl:
Publisher:
publish.yml on blue-fox-software/bluefox-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bluefox_cli-0.5.4-py3-none-any.whl -
Subject digest:
8a66ee5dc322cb8d6dde221995f814609af0574159d4846be05fb6542845e259 - Sigstore transparency entry: 1108508582
- Sigstore integration time:
-
Permalink:
blue-fox-software/bluefox-cli@a8b705f6f3c4caebc9c75d891a463477c9c23f3d -
Branch / Tag:
refs/tags/v0.5.4 - Owner: https://github.com/blue-fox-software
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a8b705f6f3c4caebc9c75d891a463477c9c23f3d -
Trigger Event:
push
-
Statement type: