# CLI Reference Yagra provides command-line tools for workflow management, validation, and visualization. ## Command Overview ```bash yagra [options] ``` **Available commands**: - `init`: Initialize from template - `schema`: Export JSON Schema - `validate`: Validate workflow YAML - `golden`: Manage golden regression test cases - `studio`: Launch visual editor WebUI - `handlers`: Display params schema for built-in handlers - `explain`: Statically analyze workflow YAML - `prompt`: Manage and inspect prompt YAML files - `mcp`: Start MCP server in stdio mode ## `yagra init` Initialize a workflow from a template. ### Usage ```bash yagra init --template --output [--force] yagra init --list ``` ### Options | Option | Description | Default | |--------|-------------|---------| | `--template` | Template name to use (`branch`, `chat`, `human-review`, `loop`, `multi-agent`, `parallel`, `rag`, `subgraph`, `tool-use`) | Required (unless `--list`) | | `--output` | Output directory | Current directory (`.`) | | `--force` | Overwrite existing files | `False` | | `--list` | List available templates | N/A | ### Examples **List templates**: ```bash yagra init --list ``` Output: ``` Available templates: - branch - chat - human-review - loop - multi-agent - parallel - rag - subgraph - tool-use ``` **Initialize from template**: ```bash yagra init --template branch --output my-workflow ``` **Overwrite existing files**: ```bash yagra init --template loop --output existing-dir --force ``` ### Behavior 1. Copies template files to output directory 2. Creates `workflow.yaml` (and `prompts/