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:
| Value | Description |
|---|---|
mermaid | Mermaid 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:
| Value | Description |
|---|---|
workflow-file | Path 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
-l, --log-level string Set log level (default "info")
SEE ALSO
- zigflow - A Temporal DSL for turning declarative YAML into production-ready workflows
- zigflow graph inject - Inject a workflow graph into a file between marker comments