Starflow CLI Export
Starflow CLI Export
Section titled “Starflow CLI Export”Use sf export (or starflow export) to emit a compiled pipeline snapshot in formats suited for:
- machine consumption (
json,yaml) - agent/system-readable docs (
text) - human review and sharing (
html-bundle)
Command
Section titled “Command”sf export <pipeline> [--format=<json|yaml|text|html-bundle>] [--out=<path>] [--config=<path>]Formats
Section titled “Formats”json- canonical machine payload with compiled graph and metadatayaml- same payload in YAML form for config-centric toolstext- concise, plain text structure for LLM agents and logshtml-bundle- single-file HTML report with steps, edges, and embedded graph JSON
Defaults
Section titled “Defaults”If --out is omitted, output is written to:
.starsystem/tmp/<pipeline>-export.json.starsystem/tmp/<pipeline>-export.yaml.starsystem/tmp/<pipeline>-export.txt.starsystem/tmp/<pipeline>-export.html
--config defaults to the nearest discovered starflow.yaml.
Examples
Section titled “Examples”# JSON export (default format)sf export guided-rfp
# YAML export with explicit outputsf export guided-rfp --format=yaml --out .starsystem/tmp/guided-rfp.yaml
# Agent-friendly text exportsf export guided-rfp --format=text
# Portable HTML export bundlesf export guided-rfp --format=html-bundle --out .starsystem/tmp/guided-rfp.htmlSuggested usage by surface
Section titled “Suggested usage by surface”- CI / automation:
jsonoryaml - Agent pipelines / prompt context:
text - Human review handoff:
html-bundle
JSON Schema (sf schema)
Section titled “JSON Schema (sf schema)”For editor validation of starflow.yaml, emit JSON Schema from the same Zod as loadStarflowConfig:
sf schema step > starflow-step.schema.jsonsf schema config --out=./starflow.schema.jsonsf schema helpUse starflow schema help for a YAML quick reference (use_sandbox, sandbox_provider, vpn-connect, …). See Starflow Designer vs Engine and CLI Reference.