> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/guideline-for-enterprise/cloudeka-api-list/command-reference/cldkctl-flexi/storage/create.md).

# create

Create a new flexi storage in your project. This command allows you to create a new flexi storage with the specified details.

## Usage

```
cldkctl flexi storage create [flags]
```

## Aliases

```
create, add
```

## Steps

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

#### Interactive Mode

1. Run the following command in your terminal:

```
cldkctl flexi storage create -i true
```

2. The terminal displays the **Create Storage** form. Select the desired **Storage Type**: **Basic**, **Standard**, or **Premium**.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2F1JL7zrba3zWVZRkYto2N%2F1.png?alt=media&amp;token=0a35e72d-1bf8-4dd5-be6b-f120439da1be" alt=""><figcaption></figcaption></figure>

3. Select the desired **Volume Type**, or enter the **Volume Size in GB** according to your storage requirements.
4. When prompted, choose whether to attach the storage to an instance by selecting **Yes** or **No**.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FjMjWpO35QeJDaHNYkWxv%2F2.png?alt=media&amp;token=f44e212e-c296-4cdb-913a-b4c0c56cef48" alt=""><figcaption></figcaption></figure>

5. If **Yes** is selected, select the instance to which the storage will be attached.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fy9zKgQh6cj5E3rF6vlUE%2F3.png?alt=media&amp;token=48db6820-ca71-4039-9668-e53bbeba4e7f" alt=""><figcaption></figcaption></figure>

5. Enter the **Name Volume**, select the **Zone**, and choose the **Billing Type**.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FWfnp2LfarCou6GmgOiQw%2F4.png?alt=media&amp;token=4c415f10-72b7-4081-8f84-ee34777bb68d" alt=""><figcaption></figcaption></figure>

6. Confirm the creation 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%2F2npt1cy8bu5vFzq5cCjx%2F5.png?alt=media&amp;token=26f0c3e7-42ae-47da-925e-24b9ca3672f0" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FZnjJrmp20iztspRIgvt5%2F6.png?alt=media&amp;token=5448dfba-89e4-475e-90a5-93c1587cc0ed" alt=""><figcaption></figcaption></figure>

#### Non-Interactive Mode

1. Provide all required values using command flags.
2. Add `--auto-confirm true` or `-y` to skip confirmation prompts in non-interactive mode.
3. Run the command in your terminal.
4. Once completed successfully, the terminal displays the success message.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FuR5e8k4o5W07AGe4Uapb%2Fimage.png?alt=media&amp;token=9c8adf96-ac5d-4643-a4fe-ea2f6217c037" alt=""><figcaption></figcaption></figure>

## Flags

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

| Flag              | Shorthand | Default | Description                                                |
| ----------------- | --------- | ------- | ---------------------------------------------------------- |
| --attach-instance |           |         | Instance name to attach (optional)                         |
| --auto-confirm    | -y        | false   | Skip confirmation prompt in non-interactive mode           |
| --billing-type    | -b        |         | Billing Type: PPU or Trial                                 |
| --help            | -h        |         | Help for the create command                                |
| --interactive     | -i        | false   | Run in interactive/TUI mode                                |
| --name            | -n        |         | Volume Name                                                |
| --project         | -p        |         | Project ID for filtering storage                           |
| --storage-type    |           |         | Storage Type ID or name                                    |
| --volume-size     |           |         | Volume Size in GB                                          |
| --volume-type     |           |         | Volume Type ID                                             |
| --voucher-id      |           |         | Voucher ID, name, or code (required if billing-type=Trial) |
| --zone            | -z        |         | Zone ID or name                                            |
