> 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/deka-gpu-documentations/cloudeka-api-list/command-reference/cldkctl-flexi/network/subnet/update.md).

# update

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

## Usage

```
cldkctl flexi network subnet 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 Subnet List**](/deka-gpu-documentations/cloudeka-api-list/command-reference/cldkctl-flexi/network/subnet/list.md) section to obtain the **subnet ID**.
2. Run the following command in your terminal:

```
cldkctl flexi network subnet update [subnet_id] -i true
```

3. Replace **\[subnet\_id]** with the actual subnet ID.
4. The terminal displays the **Update Subnet** form. Modify the subnet configuration as needed.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FYqlJkp3BJdAG1cGrIv5O%2F1.png?alt=media&amp;token=63e9fd38-0fa4-42c4-90cb-3b7b36efe9a5" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FIKtWlog0vJRlE85JKOV4%2Fimage.png?alt=media&amp;token=b8688889-186a-4c96-8bfa-6b0fa8e87cbd" alt=""><figcaption></figcaption></figure>

6. 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%2Fg17U4whALLDSz2WxLYQM%2Fimage.png?alt=media&amp;token=c5a300ac-1129-41f5-ab7f-6215eb4edc6c" alt=""><figcaption></figcaption></figure>

#### Non-Interactive Mode

1. Provide all required values using command flags.
2. Add `--auto-confirm true` 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%2FqdRVAqKJRjCiCTAwpvrr%2Fimage.png?alt=media&amp;token=4fafeb59-3324-4d6d-a1ac-4266f7548c84" alt=""><figcaption></figcaption></figure>

## Flags

{% hint style="info" %}
This command supports [global flags](/deka-gpu-documentations/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     |
| --dns-name-servers |           |         | DNS name servers                                     |
| --enable-dhcp      |           |         | Enable DHCP: enabled or disabled                     |
| -h, --help         | -h        |         | Help for the update command.                         |
| --host-routes      |           |         | Host routes                                          |
| --interactive      | -i        | false   | Force interactive TUI mode                           |
| --subnet-id        |           |         | Subnet ID or name (required in non-interactive mode) |
