---
title: "ezgh keys grants"
description: "A key's grants: use by a user or bot, without changing its policy."
---

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

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

A grant gives one user or bot some use actions on one key. It replaces the key policy's allow, never IAM's, and a deny in the key policy still beats it.

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

## Flags

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

## Subcommands

| Command | Description |
| --- | --- |
| [`ezgh keys grants create`](/cli/reference/keys-grants-create) | Let a user or bot use a key |
| [`ezgh keys grants get`](/cli/reference/keys-grants-get) | Show a grant |
| [`ezgh keys grants list`](/cli/reference/keys-grants-list) | List a key's grants |
| [`ezgh keys grants revoke`](/cli/reference/keys-grants-revoke) | Revoke a grant |

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