> 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/network/floatingip/create.md).

# create

Create a new floating ip network in your project. This command allows you to add a new floating ip with the specified details.

## Usage

```
cldkctl flexi network floatingip create [flags]
```

## Aliases

```
create, 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 network floatingip create -i
```

2. The terminal displays the **Floating IP Type** options.

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

3. Select the **Billing Type** for the floating IP.

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

4. Select the **Resource Type**, then choose the resource where the floating IP will be attached.
5. Select the instance from the **Resource** list.

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

6. Select the **VPC Port** associated with the selected instance.

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

7. 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-e67aeafea2752eca0513099b69b171332a2bfce4%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

8. 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-ae3db69a260558f9c2585113713c019cd4c7ca48%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-7b7215889f89f5ee3071e7185a3f4c36708a1b0d%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                                                                   |
| --------------- | --------- | ------- | ----------------------------------------------------------------------------- |
| --auto-confirm  | -y        | false   | Skip confirmation prompt in non-interactive mode                              |
| --billing-type  |           |         | Billing type: Monthly, PPU, or Trial (required in non-interactive mode)       |
| --help          | -h        |         | Help for the create command                                                   |
| --interactive   | -i        | false   | Force interactive TUI mode                                                    |
| --ip-type       |           |         | Floating IP type: reserved or non-reserved (required in non-interactive mode) |
| --port-id       |           |         | VPC Port ID (required in non-interactive mode)                                |
| --resource-id   |           |         | Resource (instance) ID (required in non-interactive mode)                     |
| --resource-type |           |         | Resource type: Instance                                                       |
