Skip to main content

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.

Documentation · PyPI


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-core settings and app factory
  • Authentication via bluefox-auth — JWT tokens, cookie sessions, user management
  • SQLAlchemy models with auto-discovery — just add models.py in 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.py and models in */models.py are found automatically
  • Cloud deployment — provision and manage your own server with bfx cloud

Documentation

Full docs at bluefox-cli.bluefox.software/docs/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bluefox_cli-0.8.0.tar.gz (90.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bluefox_cli-0.8.0-py3-none-any.whl (47.0 kB view details)

Uploaded Python 3

File details

Details for the file bluefox_cli-0.8.0.tar.gz.

File metadata

  • Download URL: bluefox_cli-0.8.0.tar.gz
  • Upload date:
  • Size: 90.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bluefox_cli-0.8.0.tar.gz
Algorithm Hash digest
SHA256 62c34b53af786a2a5785611f9c04820a6742e9a2dbca39bae50220353341a595
MD5 82c75f18746dca429ff4c486788c08a3
BLAKE2b-256 d805e9dd0f9d62b5d23bd966aa72854122fbee9a5a2e70563e7447e0f0282fde

See more details on using hashes here.

Provenance

The following attestation bundles were made for bluefox_cli-0.8.0.tar.gz:

Publisher: publish.yml on blue-fox-software/bluefox-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bluefox_cli-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: bluefox_cli-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 47.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bluefox_cli-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b7e8312fd26c3107c3eb4221314aabe7b80287398c0d16c34b2adc1a0f77f14
MD5 cee54c5077a30f600f47cdbb14892cc7
BLAKE2b-256 f13599725dda67c793b757d593c7f581f57b11946d17a57eaf5072312e9c61cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for bluefox_cli-0.8.0-py3-none-any.whl:

Publisher: publish.yml on blue-fox-software/bluefox-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page