Reference
CLI
Browse workflows, trigger runs, tail logs and pull exports from your terminal or CI pipeline — plus a full-screen interactive mode.
Why a CLI
The dashboard is built for exploring and editing a workflow by hand; the CLI is for everything you want to do without a browser open — check a workflow's status from a script, trigger a run from another tool, or export a project as a step in your own pipeline before it ships. It's a thin wrapper around the same REST API the dashboard uses. It can trigger and inspect anything, but it never edits a workflow's nodes or connections — that stays in the builder, by design.
Installing the CLI
Standalone binary — no Bun or Node required, macOS/Linux (arm64 + x64) and Windows (x64):
Or via npm or pnpm — either way the CLI itself still runs on Bun, not Node, so make sure it's installed:
fimaflow login opens a browser to authorize the CLI on your account, runs a short-lived local server to catch the token, and stores it under ~/.config/fimaflow/ — the same way gh auth login works. Credentials live in their own file with 0600 permissions, never in a shared config.
Authentication
For CI or a headless box where no browser is available, skip fimaflow login and pass a token instead. Create one from the dashboard, then:
- •
FIMAFLOW_TOKENoverrides any saved or profile token — use it in CI. - •
FIMAFLOW_API_URLpoints the CLI at a different backend. - •
--profile <name>(orFIMAFLOW_PROFILE) keeps separate accounts side by side. - •
fimaflow whoamiconfirms who you're signed in as;fimaflow logoutclears the stored token.
Commands
Workflows, runs & logs
--follow streams the same live events the builder shows, with a progress bar for nodes completed. It follows one execution and exits — wrap it in your own loop if a CI step needs polling or retries.
Export
Targets: hono, fastify, express, elysia, fastapi. Produces the exact same project as exporting from the builder — see Framework Export.
Projects, workspaces & templates
Every command takes --json for machine-readable output, and every one returns a stable exit code (0 ok, 1 the run failed, 2 missing config, 3 not authenticated, 4 not found).
Interactive mode
A full-screen dashboard: tabs for Workflows, Projects, Workspaces and Templates (1–4 or Tab), j/k or arrows to move, / to filter. From the Workflows tab, Enter runs the selection and streams its logs inline; x shows its execution history. q steps back or quits.
Using it in CI
Authenticate with FIMAFLOW_TOKEN, and export a workflow as part of your pipeline before it reaches production. Non-TTY output drops the colors and progress bars automatically.
Limitations
- • The CLI triggers and inspects workflows — it can't edit nodes or connections. That's builder-only.
- •
run/logs --followstream a single execution and exit; they don't poll or retry on their own. - • GitHub publishing, version restore and the DB explorer aren't exposed on the CLI yet — use the dashboard for those.