---
title: "ezgh keys rotate"
description: "Rotate a key now."
---

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

# ezgh keys rotate

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh keys rotate <key>
```

Add a new version to a key, which seals everything from now on. Existing ciphertext stays readable and isn't changed. Keys also rotate themselves every year. A key holds at most 100 versions.

Part of [`ezgh keys`](/cli/reference/keys).

## Flags

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/keys-rotate/index.mdx
