@getxflow/cli
CLI for the XFlow platform: source sync, builds and releases.
npm i -g @getxflow/cli
xflow login
xflow init my-app
cd my-app && npm install && xflow dev
xflow deploy -m "First version"
Requires Node 22+. The package has no dependencies: it holds an access key, and nobody else's code belongs next to it.
| Command | What it does |
|---|---|
login / logout / whoami | sign in through the browser, sign out, whose key this is and what it can do |
org / org switch | organizations with a stored key, and which one this folder works with |
init / link | new app, link a folder to an existing one |
migrate | move a CLI 1 project (root with apps/) into one app folder |
status / pull | state of the sources on the server and fetching them back |
deploy / publish / rollback / deployments | build a version (site, functions, migrations), publish it, go back to an earlier one, history |
db status / db migrate | applied migrations, a dry run of migrations/*.sql (they apply with deploy) |
db schema / db query | tables and columns, reading data in a read-only transaction |
functions list | cloud functions of the app from functions/<name>/index.ts, live with publish |
functions invoke / functions logs | call a function, look at its crashes with the stack |
schedules list / set / rm | running functions on a timer (timer triggers) |
env / env check / env set | environment variables of the functions, values are never handed back |
connections / connections link / connections unlink | connected accounts the functions can use, and their variables |
logs | browser errors from the released application |
apps / apps get / apps delete | apps of the organization, one app card, deleting an app |
skills | platform instructions for an AI agent (Agent Skills format) |
update | update the CLI itself, and the skill that ships inside it |
Help for one command: xflow help <command>.
You write the application yourself or with your agent: the platform stays out of the code.
xflow skills puts a description of the platform alongside it, which Claude Code, Codex and
OpenClaw pick up on their own when a task touches XFlow. Your AGENTS.md and CLAUDE.md are
left alone. The description ships inside the package and shares its version, so xflow update
brings both.
The key is stored in ~/.xflow/credentials.json, the app configuration in xflow.json.
For CI, pass the key in the XFLOW_TOKEN variable.
A project of CLI 1 with several apps stays on the previous major: npx -y @getxflow/cli@1 <command>.