[egulu CLI reference](../index.md) / [egulu deploy-policy](index.md)

# egulu deploy-policy update

PATCH /v1/projects/{project}/locations/{location}/deployPolicies/{policy}

```sh
egulu deploy-policy update <NAME> [options]
```

## API operation

[DeployPolicies_update](../../api/deploypolicy/DeployPolicies_update.md): `PATCH /v1/projects/{project}/locations/{location}/deployPolicies/{policy}` (deploypolicy module)

## Arguments

| Name | Required | Description |
|---|---|---|
| `NAME` | yes | the policy |

## Options

| Option | Takes | Required | Description |
|---|---|---|---|
| `--location` | value | yes | location |
| `--project` | value | yes | project |
| `--reason` | value | no | reason |
| `--targets` | value | no | targets: comma-separated, or @file with one item a line |
| `--validate-only` | value | no | validateOnly |

The [global options](../index.md) apply too.
