fba-cli is the CLI for fastapi-best-architecture. This document collects development, usage, and command details that are intentionally kept out of the main README files.
- Node.js 18+
- Python 3.10+
- uv
- pnpm
- Docker for infrastructure management
- pnpm or Bun for developing this repository
git clone https://github.com/fastapi-practices/fba-cli.git
cd fba-cliInstall dependencies with either package manager:
pnpm installbun installRun the CLI in development:
pnpm devbun run devcreate: create a new project, default commanddev: start backend dev serverdev:web: start frontend dev serverdev:celery <worker|beat|flower>: start Celery servicesplugin add|remove|create|list: plugin managementlist|current|use|remove|edit|go: project managementinfra start|stop: infrastructure managementconfig set: update global config
-p, --project <dir> Specify project directory (defaults to current project)
--lang <lang> Switch language (zh/en)
-h, --help Show help
-v, --version Show version
- Global config:
~/.fba.json - Project config:
<project>/.fba.json
Use pnpm:
pnpm dev
pnpm typecheck
pnpm buildUse bun:
bun run dev
bun run typecheck
bun run build