﻿---
title: stack kb workflows post-workflows-workflow-id-run cli command
description: Run a workflow Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://docs-v3-preview.elastic.dev/elastic/cli/pull/573/cli/stack/kb/workflows/post-workflows-workflow-id-run
---

# stack kb workflows post-workflows-workflow-id-run cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb workflows post-workflows-workflow-id-run \
  --id <id> \
  --inputs <inputs> \
  [options]
```

Run a workflow
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--id string required">
    Workflow ID
  </definition>
  <definition term="--inputs string required">
    Key-value inputs for the workflow execution.
  </definition>
  <definition term="--metadata string">
    Optional metadata for the execution.
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="--json">
    output as JSON
  </definition>
</definitions>