[egulu CLI reference](../index.md) / [egulu crypto-keys](index.md)

# egulu crypto-keys rotate

POST /v1/projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}:rotate

```sh
egulu crypto-keys rotate [options]
```

## API operation

[CryptoKeyLifecycle_rotate](../../api/kms/CryptoKeyLifecycle_rotate.md): `POST /v1/projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}:rotate` (kms module)

## Options

| Option | Takes | Required | Description |
|---|---|---|---|
| `--crypto-key` | value | yes | cryptoKey |
| `--expected-primary` | value | no | expectedPrimary |
| `--key-ring` | value | yes | keyRing |
| `--location` | value | yes | location |
| `--project` | value | yes | project |

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