> ## Documentation Index
> Fetch the complete documentation index at: https://docs.danubeai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Workflows

> List, execute, and create multi-step workflows from the CLI.

## List Workflows

```bash theme={null}
danube workflows list
danube workflows list "email automation"
```

## Get Workflow Details

```bash theme={null}
danube workflows info <workflow-id>
```

## Run a Workflow

```bash theme={null}
danube workflows run <workflow-id> -d '{"email": "user@example.com"}'
```

From a file:

```bash theme={null}
danube workflows run <workflow-id> -d @inputs.json
```

## Check Execution Status

```bash theme={null}
danube workflows status <execution-id>
```

## Create a Workflow

Create from a JSON or YAML spec file:

```json theme={null}
{
  "name": "Daily Report",
  "description": "Fetch analytics and send to Slack",
  "steps": [
    {
      "step_number": 1,
      "tool_id": "analytics-tool-id",
      "description": "Fetch daily metrics",
      "input_mapping": {"date": "{{inputs.date}}"}
    },
    {
      "step_number": 2,
      "tool_id": "slack-tool-id",
      "description": "Send summary to Slack",
      "input_mapping": {
        "channel": "#reports",
        "text": "{{steps.1.result.summary}}"
      }
    }
  ],
  "visibility": "private",
  "tags": ["reporting", "daily"]
}
```

```bash theme={null}
danube workflows create workflow.json
```

## Update a Workflow

```bash theme={null}
danube workflows update <workflow-id> updated-spec.json
```

## Delete a Workflow

```bash theme={null}
danube workflows delete <workflow-id>
```
