# create

Create a flexi instance in your project. This command allows you to create a flexi instance.

## Usage

```
cldkctl flexi instance create [flags]
```

## 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 instance create -i 
```

2. Enter the **instance name**.
3. Select the **image type**.

<figure><img src="/files/9DvpiUaxYUzT6Go20YTY" alt=""><figcaption></figcaption></figure>

4. Select the **operating system family**.
5. Select the **operating system version**.

<figure><img src="/files/dSMXzyYyfpEjjZG1Odsp" alt=""><figcaption></figcaption></figure>

6. Select the **zone**.
7. Select the **billing type**.

<figure><img src="/files/NeTCem7UOIHqCAulFipC" alt=""><figcaption></figcaption></figure>

8. Select the **processor**.
9. Select the **processor variant**.

<figure><img src="/files/OcdWcDYk8oLEa9Lfk1Wx" alt=""><figcaption></figcaption></figure>

10. Select the **instance plan**.
11. Select the **instance size**.

<figure><img src="/files/bYNlnXd1JSx2m3xEBamk" alt=""><figcaption></figcaption></figure>

12. Select the **root disk storage type**.
13. Select the **root disk storage size**.

<figure><img src="/files/b47JVdD35Nw0csCn7970" alt=""><figcaption></figcaption></figure>

14. Select the **number of data disks**.

<figure><img src="/files/HKu4Q2gn9XMO1qwVbmYH" alt=""><figcaption></figcaption></figure>

15. Select the **VPC**.

<figure><img src="/files/GqnVExtjEqAo7uOwrbZA" alt=""><figcaption></figcaption></figure>

16. Select the **authentication method**.

<figure><img src="/files/rNno8aLKA3M6d9IKahbQ" alt=""><figcaption></figcaption></figure>

17. Enter the **password** if the authentication method is set to **Password**.

<figure><img src="/files/qMfXtznVKRscUherwJHM" alt=""><figcaption></figcaption></figure>

18. Confirm the instance creation by selecting **Confirm**.

<figure><img src="/files/OiMUqTtXo5kAYtnZ8FPI" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/OwaPjWEhDQ4A0A3x1n1P" 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="/files/b67fCB8Hus23nRwsAsRQ" alt=""><figcaption></figcaption></figure>

## Flags

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

| Flag             | Shorthand | Default | Description                                       |
| ---------------- | --------- | ------- | ------------------------------------------------- |
| --amount int     |           | 1       | Number of instances to create                     |
| --auth-method    |           |         | Authentication method: password or ssh            |
| --billing-type   | -b        |         | Billing type: Fixed, PPU, or Trial                |
| --data-disks     |           |         | JSON array of data disks                          |
| --flavor-id      |           |         | Instance size/flavor ID                           |
| --help           | -h        |         | help for create                                   |
| --image-id       |           |         | Custom image ID (for --image-type=custom)         |
| --image-os-id    |           |         | OS image ID (for --image-type=os)                 |
| --image-type     |           |         | Image type: os or custom                          |
| --interactive    | -i        | false   | Run in interactive/TUI mode                       |
| --name           | -n        |         | Instance name (min 5 characters)                  |
| --password       |           |         | Instance password (for auth-method=password)      |
| --project        | -p        |         | Specify project ID                                |
| --root-disk-size |           |         | Root disk package ID, or custom:\<size\_gb>       |
| --root-disk-type |           |         | Root disk storage type ID                         |
| --ssh-key-ids    |           |         | Comma-separated SSH key IDs (for auth-method=ssh) |
| --tags           |           |         | Tags                                              |
| --voucher-id     |           |         | Voucher ID (required if billing-type=Trial)       |
| --vpc-id         |           |         | VPC network ID                                    |
| --zone           |           |         | Zone ID                                           |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudeka.ai/guidance-for-individual/cloudeka-api-list/command-reference/cldkctl-flexi/instance/create.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
