---
title: "ezgh objects keys create"
description: "Create an access key; its secret is shown once."
---

> 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 objects keys create

{/* 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 objects keys create [--description d] [--bot bot_…] [--print-credentials] [flags]
```

Create an access key, which acts with your access, or with a bot's with `--bot`. Its ID is the S3 access key ID. The secret is printed once and can't be shown again.

`--print-credentials` prints an AWS CLI profile holding the secret, for ~/.aws/config.

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

## Examples

```sh
ezgh objects keys create --description laptop --print-credentials >> ~/.aws/config
aws --profile ezgh s3 ls
```

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--bot` | string |  | a bot's ID (bot\_…) for the key to act as |
| `--description` | string |  | what the key is for |
| `--print-credentials` | boolean |  | print an AWS CLI profile holding the secret |

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

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