# access-key-create

The box access-key-create command creates a new access key for a specific object storage instance. This command generates a new access key and secret access key, which can be used to authenticate and access the object storage via S3-compatible services.

## Usage

```
cldkctl box access-key-create [flags] 
```

## Steps

Follow the steps below to run and view the result of this command:

1. View your available object storage instances to find the Object Storage ID. Refer to the Box List section.
2. Run the following command in your terminal:

```
cldkctl box access-key-create <object-storage-id>
```

3. Replace `<object-storage-id>` with the ID of the object storage where the access key will be created.
4. In the interactive interface, select the User to associate with the access key.
5. Enter the Access Key Name

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FoEs0sQ6eyJSMJyc2mGrn%2Funknown.png?alt=media&#x26;token=4b951f9a-9cdc-4de8-bd81-46ba5d869ff5" alt=""><figcaption></figcaption></figure>

6. Confirm the creation by selecting y, or cancel by choosing n.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2F6cET9XrlzdZKzrEfUjuQ%2Funknown.png?alt=media&#x26;token=6935591c-8cae-4754-8da6-d1c2b3fd4c02" alt=""><figcaption></figcaption></figure>

7. Once completed successfully, a message **“✓ Access Key created successfully!”** will appear in your terminal.
8. Along with this message, the Secret Access Key will also be displayed. Make sure to copy and securely store the secret key immediately, as it may only be shown once.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FRxjZnRUaAG0PGuFH8Elg%2Funknown.png?alt=media&#x26;token=e2eca5b3-3bc1-4fcc-b16c-927d81eabb7e" alt=""><figcaption></figcaption></figure>

## Flags

{% hint style="info" %}
This command supports [global flags](https://docs.cloudeka.ai/cloudeka-api-list/global-flags). Refer to the Global Flags section for details
{% endhint %}

| Flag       | Description                             |
| ---------- | --------------------------------------- |
| -h, --help | Help for box access-key-create command. |
