Official Pubflow Platform CLI to create apps and manage projects.
Use the guided flow or direct commands to start frontend, backend, and Native projects quickly.
Package: pubflow. Bins: pubflow and pbfl. Node 18.17+.
Global (pick the manager you use):
npm install -g pubflow
pnpm add -g pubflow
yarn global add pubflow
bun add -g pubflowOne-shot (no global install):
npx pubflow start
pnpm dlx pubflow start
yarn dlx pubflow start
bunx pubflow startPubflow apps are built around two simple pieces:
- Flowless handles auth, sessions, users, login, registration, 2FA, and password reset.
- Flowfull is your backend(s): routes, database, business logic, roles, permissions, and app data.
Frontend apps authenticate with Flowless and store the returned sessionId.
Authenticated requests to Flowfull send:
X-Session-ID: <sessionId>Flowfull validates that session with Flowless through Bridge Validation:
POST {FLOWLESS_URL}/auth/bridge/validate
X-Session-ID: <sessionId>
X-Bridge-Secret: <BRIDGE_VALIDATION_SECRET>Then Flowfull decides what the user can do.
That means frontend starters can use Flowless auth and Flowfull APIs together with the same session flow.
pubflow init
pubflow start
pubflow create
pubflow start <template> [name]
pubflow create <template> [name]
pubflow list
pubflow doctor
pubflow context init
pubflow context init --agents
pubflow context init --cursor
pubflow context init --copilot
pubflow context init --claude
pubflow context init --all
pubflow add context
pubflow add env
pubflow add client [client]
pubflow add middleware
pubflow add shadcn
pubflow inspect
pubflow docs [topic]
pubflow hints [topic]You can also use the short alias:
pbfl init
pbfl start
pbfl add env
pbfl inspectpubflow start is a full alias of pubflow create (same templates and flags). pubflow init, pubflow start, and pubflow create with no template all open the guided selector. Direct: pubflow start native my-app is the same as pubflow create native my-app.
pubflow init is the friendliest named entry for “new vs existing project”. It asks whether you are starting a new project or adding Pubflow to the current project.
For a new project, it opens the starter selector.
For an existing project, it lets you add:
AI context
Env vars
Flowfull client
Bridge middleware
Pages (Pubflow Native)
Native (Vite)
shadcn/ui (Native)pubflow init
pubflow start
pubflow create
pubflow create python-backend my-api
pubflow start native my-app
pubflow create native my-app
pubflow create native-minimal my-app
pubflow create native-custom-hono my-app
pubflow context init
pubflow context init --full --all
pubflow add context
pubflow add env
pubflow add client react
pubflow add client rust
pubflow add middleware
pubflow add shadcn
pubflow inspect
pubflow docs bridge
pubflow hints clientspubflow add env adapts env names to the detected project.
Frontend apps get public-safe env vars:
Vite / React: VITE_FLOWLESS_URL, VITE_FLOWFULL_API_URL, VITE_BRIDGE_VALIDATION_SECRET
Expo: EXPO_PUBLIC_FLOWLESS_URL, EXPO_PUBLIC_FLOWFULL_API_URL, EXPO_PUBLIC_BRIDGE_VALIDATION_SECRET
Next.js: NEXT_PUBLIC_FLOWLESS_URL, NEXT_PUBLIC_FLOWFULL_API_URL, NEXT_PUBLIC_BRIDGE_VALIDATION_SECRETBackends get Bridge Validation env vars:
FLOWLESS_URL
BRIDGE_VALIDATION_SECRET
FLOWFULL_API_URL
PUBFLOW_VALIDATION_MODEInstall compact Pubflow context for coding agents:
pubflow context initFast default:
pubflow context init --yesThis creates:
.pubflow/context/pubflow-context.md
AGENTS.mdFor deeper project docs:
pubflow context init --fullFor editor/agent references:
pubflow context init --agents
pubflow context init --cursor
pubflow context init --copilot
pubflow context init --claude
pubflow context init --allSupported starter kits today:
Frontend starters:
react- install withbun install, run withbun run devnext- install withnpm install, run withnpm run devreact-native- install withnpm install, run withnpx expo start
Backend starters:
node-backend- install withnpm install, run withnpm run devpython-backend- install withpip install -r requirements.txt, run withuvicorn app.main:app --reload --host 0.0.0.0 --port 3001go-backend- install withgo mod download, run withgo run cmd/server/main.gorust-backend- install withcargo fetch, run withcargo runelixir-backend- install withmix deps.get, run withmix phx.server
Full-stack (Pubflow Native — one process, not apps/web + apps/api):
native- Default (starter/). install withbun install, run withbun run devnative-minimal-examples/minimal. install withbun install, run withbun run devnative-custom-hono-examples/custom-hono-server. install withbun install, run withbun run dev
Aliases: flowloft, flowstack, pubflow-native → native. custom-hono, native-custom-hono-server → native-custom-hono.
npm install
npm link
pubflow listOr run without linking:
npm run pubflow -- list