---
title: "ezgh keys policy"
description: "A key's policy: who may use and manage it, within what IAM allows."
---

> 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 policy

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

Every key has a policy, checked after IAM: both must allow a request. A new key's policy allows everyone IAM allows.

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

## Flags

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

## Subcommands

| Command | Description |
| --- | --- |
| [`ezgh keys policy get`](/cli/reference/keys-policy-get) | Show a key's policy |
| [`ezgh keys policy put`](/cli/reference/keys-policy-put) | Replace a key's policy |

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