---
title: "ezgh keys"
description: "Keys: encryption keys, and the operations that use them."
---

> 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

{/* 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 <command>
```

EZGH Keys holds symmetric encryption keys in a project (`--project`, `EZGH_PROJECT` or the profile's). You create, rotate, disable and delete them, and use them to encrypt small values and to generate data keys, without ever seeing a key's material.

A &lt;key&gt; is its ID (kms\_…), its UUID or alias:&lt;name&gt;.

Plaintext is read from stdin or `--file`, never from an argument, which would land in shell history and process lists. `--context` does land there; `--context-file` doesn't.

## Flags

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

## Subcommands

| Command | Description |
| --- | --- |
| [`ezgh keys aliases`](/cli/reference/keys-aliases) | Names that point at keys |
| [`ezgh keys cancel-deletion`](/cli/reference/keys-cancel-deletion) | Cancel a key's deletion |
| [`ezgh keys create`](/cli/reference/keys-create) | Create a key |
| [`ezgh keys decrypt`](/cli/reference/keys-decrypt) | Decrypt a ciphertext, from stdin or a file |
| [`ezgh keys disable`](/cli/reference/keys-disable) | Disable a key |
| [`ezgh keys enable`](/cli/reference/keys-enable) | Enable a disabled key |
| [`ezgh keys encrypt`](/cli/reference/keys-encrypt) | Encrypt up to 4 KiB, from stdin or a file |
| [`ezgh keys generate-data-key`](/cli/reference/keys-generate-data-key) | Make a data key, shown open and sealed |
| [`ezgh keys generate-data-key-without-plaintext`](/cli/reference/keys-generate-data-key-without-plaintext) | Make a data key, shown only sealed |
| [`ezgh keys generate-random`](/cli/reference/keys-generate-random) | Generate random bytes |
| [`ezgh keys get`](/cli/reference/keys-get) | Show a key |
| [`ezgh keys grants`](/cli/reference/keys-grants) | A key's grants: use by a user or bot, without changing its policy |
| [`ezgh keys list`](/cli/reference/keys-list) | List the project's keys |
| [`ezgh keys policy`](/cli/reference/keys-policy) | A key's policy: who may use and manage it, within what IAM allows |
| [`ezgh keys re-encrypt`](/cli/reference/keys-re-encrypt) | Move a ciphertext to another key, without showing its plaintext |
| [`ezgh keys rotate`](/cli/reference/keys-rotate) | Rotate a key now |
| [`ezgh keys schedule-deletion`](/cli/reference/keys-schedule-deletion) | Schedule a key's deletion |
| [`ezgh keys update`](/cli/reference/keys-update) | Rename, describe or tag a key |

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