> 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/guidance-for-enterprise/cloudeka-api-list/command-reference/cldkctl-flexi/network/port/update.md).

# update

Update a specific port network in your project. This command allows you to update a port by providing its unique identifier (port ID) and the new details you want to apply.

## Usage

```
cldkctl flexi network port update [flags]
```

## Aliases

```
update, update, upt
```

## Steps

Follow the steps below to run and view the result of this command:

#### Interactive Mode

1. Refer to the [**Flexi Network Port List** ](/guidance-for-enterprise/cloudeka-api-list/command-reference/cldkctl-flexi/network/port/list.md)section to obtain the **port ID**.
2. Run the following command in your terminal:

```
cldkctl flexi network port update [port_id] -i 
```

3. Replace **\[port\_id]** with the actual port ID.
4. The terminal displays the **Update Port** form, modify the port configuration.

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

5. When prompted, confirm the update by selecting **y**, or cancel the process by selecting **n**.

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

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

<figure><img src="/files/3uUfWVERc0kCwvjJzX0B" 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/xttmkuJWn6qnxJ6ESaCk" alt=""><figcaption></figcaption></figure>

## Flags

{% hint style="info" %}
This command supports [global flags](/guidance-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 |
| --enable-dhcp  |           |         | Enable DHCP: enabled or disabled                 |
| --help         | -h        |         | Help for the update command                      |
| --interactive  | -i        | false   | Force interactive TUI mode                       |
| --name         | -n        |         | Port name                                        |
| --port-id      |           |         | Port ID (required in non-interactive mode)       |
