Flow Profile ships a CLI with three commands: build, lint, and doc.
flow-profile build --in <flow.json> [options]
flow-profile lint --in <flow.json|dir> [options]
flow-profile doc --in <flow.json> --out <file> [options]If you have not installed a global CLI, run the compiled binary directly:
bun run --cwd packages/cli build
node packages/cli/dist/cli.js build --in ./flows.json --out-dir ./outBuilds a deterministic support bundle plus supporting artifacts.
flow-profile build --in ./flows.json --out-dir ./outOutputs:
about-my-flows.jsoncapability-manifest.jsonprompt-context.mdrisk-findings.jsonbundle-manifest.jsonsupport-bundle.zip
Options (from flow-profile build --help):
--in <path>Input flow JSON file (required)--out-dir <dir>Output directory (default:out)-o, --out <dir>Alias for--out-dir--redactEnable redaction (default)--no-redactDisable redaction (prints warning)--strictEnable entropy scanning (default)--no-strictDisable entropy-based redaction--flattenExpand subflows (default)--no-flattenDo not expand subflows--entropy <value>Entropy threshold override--jsonEmit machine-readable JSON summary--quietSuppress non-error output-h, --helpShow help
Runs static risk detection against one or more flow exports.
flow-profile lint --in ./flows.json
flow-profile lint --in ./flows --format sarif --output ./lint.sarifOptions:
--in <path>Input flow JSON file or directory (required)--config <path>Path to.flowprofilerc.json--only <ruleIds>Comma-separated rule IDs to run--skip <ruleIds>Comma-separated rule IDs to skip--fail-on <level>Exit non-zero onerrororwarnfindings (default:error)--format <format>Output format:text|json|sarif(default:text)--output <path>Write report to file instead of stdout--jsonAlias for--format json--include <globs>Comma-separated glob patterns (default:**/*.json)--exclude <globs>Comma-separated glob patterns to exclude--quietSuppress non-error output-h, --helpShow help
Exit codes:
0No findings above the--fail-onthreshold2Findings at or above the--fail-onthreshold1CLI or input errors
Generates runbook documentation or a diff report between two flows.
flow-profile doc --in ./flows.json --out ./runbook.md
flow-profile doc --in ./after.json --diff ./before.json --out ./changes.md
flow-profile doc --in ./flows.json --out ./runbook.html --format htmlOptions:
--in <path>Input flow JSON file (required)--diff <path>Diff against another flow JSON file--out <path>Output file (required)--format <type>Output format:markdown(default) orhtml--include-codeInclude function node source code--title <string>Document title (default:Flow Documentation)--author <string>Author name for header--quietSuppress non-error output-h, --helpShow help