> 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/guideline-for-enterprise/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**](/guideline-for-enterprise/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 true
```

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%2F2pXDeyS4IagRKNbpyUVT%2F1.png?alt=media&amp;token=e95df7c8-ab36-4f2c-8fe5-3380bf30eca5" 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%2FNCC6cnh1FtQS1Er2CoxT%2F2.png?alt=media&amp;token=7bb3b500-c590-4a50-a370-480276f74c24" 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%2F1AXEOC1fF0GqydDS5nds%2F3.png?alt=media&amp;token=8537ae49-1610-4299-96d5-686d67ed52ea" alt=""><figcaption></figcaption></figure>

#### Non-Interactive Mode

1. Provide all required values using command flags.
2. Add `--auto-confirm true` or `-y true` 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%2FVZyOIgDEtTUnp9S4mRT8%2F4.png?alt=media&amp;token=2c9e943b-3510-4f61-af89-889bf023a04b" alt=""><figcaption></figcaption></figure>

## Flags

{% hint style="info" %}
This command supports [global flags](/guideline-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 (true/false) |
| --description string |           |         | VPC description                                               |
| --help               | -h        |         | Help for the update command                                   |
| --interactive        | -i        | false   | Run in interactive/TUI mode (true/false)                      |
| --name string        | -n        |         | VPC name                                                      |
| --vpc-id string      |           |         | VPC ID or name (required in non-interactive mode)             |
