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

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.

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.


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-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 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.py and models in */models.py are found automatically

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.4.2.tar.gz (62.8 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.4.2-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bluefox_cli-0.4.2.tar.gz
  • Upload date:
  • Size: 62.8 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.4.2.tar.gz
Algorithm Hash digest
SHA256 cab0c0eb2133ff85dd90844c6810df185328d7644298ec59f0878de4ecfc73f0
MD5 306af8a3e2818f97c7e20c071aa8d9b2
BLAKE2b-256 9645ce48c57a6eb599db39399c9dceaf76c8624232cb1560db64faf1844bb19e

See more details on using hashes here.

Provenance

The following attestation bundles were made for bluefox_cli-0.4.2.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.4.2-py3-none-any.whl.

File metadata

  • Download URL: bluefox_cli-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 18.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.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1fa4f8d26e6949bbe17788e9854594f6ac5941706dce41b7dfb0a8dc46018206
MD5 504edc535f2b662b664f9cd7af91d0c3
BLAKE2b-256 5ec84155d59ee8be2d0bb325d25d2d3c1a3451362c10877126a6d75b7f79764e

See more details on using hashes here.

Provenance

The following attestation bundles were made for bluefox_cli-0.4.2-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