Scaffolding tool for the Bluefox Stack — one command to generate a complete FastAPI project with auth, Postgres, and Redis.
Project description
bluefox-cli
CLI for the Bluefox Stack — scaffold FastAPI projects, develop locally, and deploy to your own server.
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.
Deploy
bfx cloud bootstrap --ip 37.27.83.150 --domain bluefox.software
One command provisions your server with Docker Swarm, Traefik, Postgres, Redis, and the Bluefox Cloud platform. Then bfx cloud deploy ships updates.
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.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) |
bfx cloud bootstrap |
Provision a server (or --local for dev) |
bfx cloud deploy |
Update the platform to the latest version |
bfx cloud status |
Check infrastructure health |
bfx cloud login <url> |
Save platform credentials |
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 local development (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 - Cloud deployment — provision and manage your own server with
bfx cloud
Documentation
Full docs at bluefox-cli.bluefox.software/docs/
- Getting started — walkthrough of your first project
- CLI commands — all available commands
- Generated files — what each file does
- Adding models — auto-discovery convention
- Deployment — deploy with Bluefox Cloud
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.8.5.tar.gz.
File metadata
- Download URL: bluefox_cli-0.8.5.tar.gz
- Upload date:
- Size: 91.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
713b784c92a16ffefd9956f7ead54b342cf0d137193f34a01d2e1b9d70ce72a2
|
|
| MD5 |
3eebc52001b50be86758be762e9e192a
|
|
| BLAKE2b-256 |
edda930996f0fc37e995163f6f852ce53e13e4047c98b27443f38bfb6212c781
|
Provenance
The following attestation bundles were made for bluefox_cli-0.8.5.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.8.5.tar.gz -
Subject digest:
713b784c92a16ffefd9956f7ead54b342cf0d137193f34a01d2e1b9d70ce72a2 - Sigstore transparency entry: 1110939689
- Sigstore integration time:
-
Permalink:
blue-fox-software/bluefox-cli@8f2a7091957d5b62a7e60845abc0a272e9cb5061 -
Branch / Tag:
refs/tags/v0.8.5 - Owner: https://github.com/blue-fox-software
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8f2a7091957d5b62a7e60845abc0a272e9cb5061 -
Trigger Event:
push
-
Statement type:
File details
Details for the file bluefox_cli-0.8.5-py3-none-any.whl.
File metadata
- Download URL: bluefox_cli-0.8.5-py3-none-any.whl
- Upload date:
- Size: 47.7 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 |
61bb92c73212463d5bfb1a5b2a97d3ebd4b45eb641a4d45f809227aee8f36e24
|
|
| MD5 |
9d04a463bfcf0035e780e4a3b88c2c5a
|
|
| BLAKE2b-256 |
da0caaecef20cb226c57c9fc46ec3bd89255cb6bd5d575c87ce4a5b0c564fcc7
|
Provenance
The following attestation bundles were made for bluefox_cli-0.8.5-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.8.5-py3-none-any.whl -
Subject digest:
61bb92c73212463d5bfb1a5b2a97d3ebd4b45eb641a4d45f809227aee8f36e24 - Sigstore transparency entry: 1110939703
- Sigstore integration time:
-
Permalink:
blue-fox-software/bluefox-cli@8f2a7091957d5b62a7e60845abc0a272e9cb5061 -
Branch / Tag:
refs/tags/v0.8.5 - Owner: https://github.com/blue-fox-software
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8f2a7091957d5b62a7e60845abc0a272e9cb5061 -
Trigger Event:
push
-
Statement type: