> 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/instance/add-floatingip.md).

# add-floatingip

Add floating ip to a flexi instance in your project. This command allows you to add floating ip to a flexi instance.

## Usage

```
cldkctl flexi instance add-floatingip [name] [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 add-floatingip [instance-name] -i
```

2. Replace **\[instance-name]** with the name of the instance.
3. Select the **floating IP type**.

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

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

5. Select the **port**.
6. Confirm the floating IP addition by selecting **Confirm**.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fgit-blob-3e55900d0e24eabfa0cf84c60759ca043917f42d%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-be28817bacafd4dec1db264b2dd75bf53d9f4e00%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-09c3e23073b7224c330957346b032c6ec459f74e%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 %}

| Flags          | Shorthand | Default | Description                                                                    |
| -------------- | --------- | ------- | ------------------------------------------------------------------------------ |
| --auto-confirm | -y        | false   | Skip confirmation prompt in non-interactive mode                               |
| --billing-type |           |         | Billing type: Fixed, PPU, Monthly, or Trial (required in non-interactive mode) |
| --help         | -h        |         | help for add-floatingip                                                        |
| --interactive  | -i        | false   | Force interactive TUI mode                                                     |
| --ip-type      |           |         | Floating IP type ID (required in non-interactive mode)                         |
| --port-id      |           |         | VPC Port ID (required in non-interactive mode)                                 |
| --project      | -p        |         | Specify project ID                                                             |
| --voucher-id   |           |         | Voucher ID (required when billing-type is Trial)                               |
