Skip to main content

zigflow graph

zigflow graph

Generate a visual graph of a Zigflow workflow

Synopsis

Generate a visual graph of a Zigflow workflow definition.

This command loads the provided workflow file and renders a structural diagram that shows tasks, control flow, branching, loops, error handling, and — for files that define multiple Temporal workflows — each workflow as a separate labelled section.

The diagram reflects the same workflow topology that the Zigflow runtime uses: tasks are shown in execution order, switch branches indicate conditional routing, fork tasks show parallel branches, for tasks show loop bodies, and try/catch tasks show the error-handling path.

Use the --output flag to select the renderer. Currently supported:

ValueDescription
mermaidMermaid flowchart (https://mermaid.ai)

The output is written to stdout and can be piped directly into tools or saved to a file for use in documentation, pull-request descriptions, or any Mermaid- compatible renderer.

Arguments:

ValueDescription
workflow-filePath to the Zigflow workflow file to graph
zigflow graph <workflow-file> [flags]

Options

-h, --help help for graph
-o, --output string Output format (mermaid) (default "mermaid")

Options inherited from parent commands

--disable-telemetry Disables all anonymous usage reporting. No telemetry data will be sent.
-l, --log-level string Set log level (default "info")

SEE ALSO

  • zigflow - Define durable workflows in YAML, powered by Temporal
  • zigflow graph inject - Inject a workflow graph into a file between marker comments
Auto generated by spf13/cobra on 18-Apr-2026