> 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.md).

# cldkctl flexi

Manage Deka Flexi compute, networking, storage, and related resources.

`cldkctl flexi` is the CLI interface for managing Deka Flexi cloud resources. It supports two modes of operation:

* **Interactive (TUI)** -- Full wizard-style interface with dropdowns, inputs, and confirmations
* **Non-interactive (CLI flags)** -- Scriptable flag-based mode for automation and CI/CD

## Usage

```
cldkctl flexi [flags]
cldkctl flexi [command]
```

## Available commands

| Command   | Description                                   |
| --------- | --------------------------------------------- |
| disk-type | List available disk/storage types             |
| flavor    | List instance flavors (CPU/RAM plans)         |
| image     | Manage images, snapshots, and backups         |
| instance  | Manage flexi compute instances                |
| network   | Manage VPCs, subnets, ports, and floating IPs |
| region    | List regions and availability zones           |
| security  | Manage security groups and rules              |
| strorage  | Manage block storage volumes                  |

## 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       | Description    |
| ---------- | -------------- |
| -h, --help | Help for flexi |

## Dual-Mode Operation

Most write operations (create, update, delete, attach, etc.) support both interactive and non-interactive modes:

### Interactive Mode

Add `--interactive` or `-i` to launch the TUI wizard:

```
cldkctl flexi instance create -p <project-id> -i
```

### Non-Interactive Mode

Provide all required values via flags:

```
cldkctl flexi instance create -p <project-id> \
  --name my-instance \
  --image-type os \
  --image-os-id <os-id> \
  --flavor-id <flavor-id> \
  --zone <zone-id> \
  --billing-type PPU \
  --root-disk-type <disk-type> \
  --vpc-id <vpc-id> \
  --auth-method password \
  --password Secret123!
```

### Auto-Confirm

Add `--auto-confirm` or `-y` to skip confirmation prompts in non-interactive mode:

```
cldkctl flexi storage create -p <project-id> \
  --name my-vol --volume-size 50 --billing-type PPU -y
```
