# update

Update an existing flexi security in your project. This command allows you to modify the details of an existing flexi security.

## Usage

```
cldkctl flexi-security update [flags]
```

## Aliases

```
update, edit, modify
```

## Steps

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

1. Refer to the [**Flexi Security List**](https://docs.cloudeka.ai/cloudeka-api-list/command-reference/cldkctl-flexi-security/list) section to obtain the **security ID**.
2. Run the following command in your terminal:

```
cldkctl flexi-security update [security_id] 
```

3. Replace **\[security\_id]** with the actual security ID.
4. Update the **Security Name** by entering the name of the security configuration, and update the **Description** by entering a description for the security configuration if needed.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FjU9eU9NyzTO1kOz7yhLK%2Fimage.png?alt=media&#x26;token=5c95c151-1038-49a9-aba5-a06ddf085d33" alt=""><figcaption></figcaption></figure>

5. Select the instances where the security configuration will be applied.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FDYH2S9OasM7mSG8uIfWt%2Fimage.png?alt=media&#x26;token=e13b8d56-10c8-451f-82ab-449894389483" alt=""><figcaption></figcaption></figure>

6. When prompted, choose whether to add an inbound rule.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FfNE8pwECxNwqfmjqQ5yI%2Fimage.png?alt=media&#x26;token=d9f6c21d-62c8-43fb-8628-7ae9d67fc3ff" alt=""><figcaption></figcaption></figure>

7. When prompted, choose whether to add an outbound rule.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fecad2NxqJfOxgnixk3eR%2Fimage.png?alt=media&#x26;token=e765c885-8d35-4914-b0db-616ca8f543a2" alt=""><figcaption></figcaption></figure>

8. Confirm the update by selecting **Confirm**, or cancel the process by selecting **Cancel**.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2F47Sj1BRmQ3FPwb47FXwM%2Fimage.png?alt=media&#x26;token=d1700cb7-325e-4e9f-bcc3-568df20de85a" alt=""><figcaption></figcaption></figure>

9. 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%2FjwFVqH0TTB0bzJ5g8hve%2Fimage.png?alt=media&#x26;token=a8cf2204-db82-4abf-a15d-b58a28cbfc37" alt=""><figcaption></figcaption></figure>

## Flags

{% hint style="info" %}
This command supports [global flags](https://docs.cloudeka.ai/cloudeka-api-list/global-flags). Refer to the Global Flags section for details
{% endhint %}

| Flag       | Description                  |
| ---------- | ---------------------------- |
| -h, --help | Help for the update command. |
