> 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="/files/f38exjeSuoBgF6B1z1bF" alt=""><figcaption></figcaption></figure>

4. Select the **billing type**.

<figure><img src="/files/0cIP1Y95UvL7epTOvu9j" alt=""><figcaption></figcaption></figure>

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

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

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

<figure><img src="/files/dVdcoA9hXKMmZdcBcvZ2" 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/RMwGKrikWc4wTEN5AO25" 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)                               |
