# attach

Attach a specific flexi storage to a compute instance by their IDs.

## Usage

```
cldkctl flexi-storage attach [flags]
```

## Aliases

```
attach, att
```

## Steps

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

1. Refer to the [**Flexi Storage List**](https://docs.cloudeka.ai/cloudeka-api-list/command-reference/cldkctl-flexi-storage/list) section to obtain the **storage ID**.
2. Run the following command in your terminal:

```
cldkctl flexi-storage attach [storage_id] 
```

3. Replace **\[storage\_id]** with the actual storage ID.
4. Select the instance where the storage will be attached.
5. When prompted, confirm the action by selecting **Confirm**, or cancel the process by selecting **Cancel**.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FLvg9IhXlPAdyHAe3GGcA%2Fimage.png?alt=media&#x26;token=2871a59f-f72c-4779-bb92-9cc36409b8bd" alt=""><figcaption></figcaption></figure>

6. Once completed successfully, the terminal displays the success message.

<div align="left"><figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FtGQD8HA9iTNOlBPeSYC1%2Fimage.png?alt=media&#x26;token=acea6968-215b-492a-b27d-195a0dded106" alt=""><figcaption></figcaption></figure></div>

## 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 the attach command. |
