> 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/network/vpc/update.md).

# update

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

## Usage

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

```
cldkctl flexi network vpc update [vpc id] -i
```

3. Replace **\[vpc id]** with the actual VPC ID.
4. The terminal displays the **Update VPC** form. Modify the VPC configuration as needed.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fgit-blob-3c7c7a582050e1b093e742706111610a7619ca21%2Fimage.png?alt=media" 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%2Fgit-blob-7c898b33904eacd4af3ae63b4e4ef9f0e2182329%2Fimage.png?alt=media" 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%2Fgit-blob-409bcfec1c5187a7dd7789d99e0c4e6e9b0b4ec1%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-d30ffb341bc084273fba626ab78d5548345f9861%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 %}

| Flag                 | Shorthand | Default | Description                                      |
| -------------------- | --------- | ------- | ------------------------------------------------ |
| --auto-confirm       | -y        | false   | Skip confirmation prompt in non-interactive mode |
| --description string |           |         | VPC description                                  |
| --help               | -h        |         | Help for the update command                      |
| --interactive        | -i        | false   | Force interactive TUI mode                       |
| --name string        | -n        |         | VPC name                                         |
| --vpc-id string      |           |         | VPC ID (required in non-interactive mode)        |
