﻿---
title: stack es enrich execute-policy cli command
description: Run an enrich policy. Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://docs-v3-preview.elastic.dev/elastic/cli/pull/474/cli/stack/es/enrich/execute-policy
---

# stack es enrich execute-policy cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack es enrich execute-policy --name <name> [options]
```

Run an enrich policy.
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--name string required">
    Enrich policy to execute.
  </definition>
  <definition term="--master-timeout string">
    Period to wait for a connection to the master node.
  </definition>
  <definition term="--[no-]wait-for-completion">
    If `true`, the request blocks other enrich policy execution requests until complete.
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--[no-]dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>


## Global Options

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