Skip to content

CLI commands

SHEET
D1
REV
flowfig 0.8.4
DATE
2026-10-06

This is the output of npx flowfig help in flowfig 0.8.4.

usage: flowfig <-|spec.json|figure.ts> [out.svg] [--open] render a figure; a spec on stdin with -
flowfig check <-|spec.json|figure.ts|figure.svg> list the faults; the input can be an SVG this wrote
flowfig --spec figure.svg print the spec the SVG carries
flowfig verify <input>... [--root <dir>] [--json] [--strict] check the code links of one or more figures
flowfig diff <old> <new> [--json|--md] list the spec changes between two figures
flowfig docs [topic] print the guide, or one topic (Markdown)
flowfig mcp serve check, render, verify, diff and docs over MCP (stdio)
flowfig init [dir] [--agents <ids>] [-y] [--global] [--dry-run] [--no-mcp] write flowfig instructions for the coding agents of a repo
flowfig draw "<question>" [--out <path>] [--model <alias>] [--max-turns <n>] [--json] [--open] ask Claude Code for a figure, then check it
flowfig open <figure.svg> [--html <path>] show the figure in the default browser
flowfig gif <figure.svg> [out.gif] [--step <n>] [--dark] [--fps <n>] [--scale <n>] [--mp4] write an animated GIF
flags for render and check: --strict (warnings are errors), --json, --width <px>, --min-text <px>, --no-check (render only), --no-verify (render only)