> 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/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 
```

2. The terminal displays the **Create Storage** form, select the **Storage Type**.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fgit-blob-85ee6b4bf0dcc649674a17026ed5d1e32e1ded27%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

3. Select the **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%2Fgit-blob-3513a0c92f68bf3ddde2cbc12c6149e8d2cc20a4%2Fimage.png?alt=media" 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%2Fgit-blob-caabe59b572bcefd75202d4f1c7ce1757e5635cc%2Fimage.png?alt=media" 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%2Fgit-blob-e4461fa705ed94321da4654e3001f51fc2e088f4%2Fimage.png?alt=media" 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%2Fgit-blob-a89da186a13fe66c68fbc742807a56f4125971af%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

#### Non-Interactive Mode

1. Provide all required values using command flags.
2. Add `--auto-confirm` 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%2Fgit-blob-3a8cb769ba356a72b7c034167519574e24a3004d%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

## Flags

{% hint style="info" %}
This command supports [global flags](/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                    |
| --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                             |
| --volume-size     |           |         | Volume Size in GB                           |
| --volume-type     |           |         | Volume Type ID                              |
| --voucher-id      |           |         | Voucher ID (required if billing-type=Trial) |
| --zone            | -z        |         | Zone ID                                     |
