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

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%2Fuw2M0onEI6sTcEo1suYP%2F1.png?alt=media&amp;token=1a8b190e-d3a2-4303-8790-94742f9dcdb0" 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%2FcJvfxIW3IbyTRstkiZDx%2F2.png?alt=media&amp;token=46d2094d-cbe3-427c-821c-ab4e8264e16d" 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%2FckExd1ys8SnYAxFwYJMg%2F3.png?alt=media&amp;token=9ec92e25-412a-4f2a-b720-ed8a64e0f7ea" 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%2FFkCIS2mWHpcC5pWP2j4Q%2F4.png?alt=media&amp;token=84a31582-2c3a-4e93-8e7c-0214595a3fd6" 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%2FoCpqSDGV0FeU1FkNQiHr%2F5.png?alt=media&amp;token=46b68509-e69e-4851-b8f7-aaa0e7dbb9c6" 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%2FiDr0Ktrfp0jIAuz9dynh%2Fimage.png?alt=media&amp;token=0095b2b5-2989-40f2-9563-43495d1cf7f2" alt=""><figcaption></figcaption></figure>

#### Non-Interactive Mode

1. Provide all required values using command flags.
2. Add `--auto-confirm true` or `-y true` 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%2FqPlgUYSPzv7pcRRN3bJD%2Fimage.png?alt=media&amp;token=ad857a0c-9323-4354-9b99-d4c6c2749d18" 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                                                                   |
| --------------- | --------- | ------- | ----------------------------------------------------------------------------- |
| --auto-confirm  | -y        | false   | Skip confirmation prompt in non-interactive mode (true/false)                 |
| --billing-type  |           |         | Billing type: Monthly, PPU, or Trial (required in non-interactive mode)       |
| --help          | -h        |         | Help for the create command                                                   |
| --interactive   | -i        | false   | Run in interactive/TUI mode (true/false)                                      |
| --ip-type       |           |         | Floating IP type: reserved or non-reserved (required in non-interactive mode) |
| --port-id       |           |         | VPC Port ID or name (required in non-interactive mode)                        |
| --resource-id   |           |         | Resource (instance) ID or name (required in non-interactive mode)             |
| --resource-type |           |         | Resource type: Instance                                                       |
