> 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/guide-for-individual/bahasa/cloudeka-api-list/command-reference/cldkctl-flexi/security/update.md).

# 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**](/guide-for-individual/bahasa/cloudeka-api-list/command-reference/cldkctl-flexi/security/list.md) 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://content.gitbook.com/content/cjAISi6xXwQD05JzCqqO/blobs/ShRNJSDf0RgZKuyEHHkZ/image%20(1).png" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://content.gitbook.com/content/cjAISi6xXwQD05JzCqqO/blobs/1T0RJZIjzH5pe5xQilwZ/image.png" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://content.gitbook.com/content/cjAISi6xXwQD05JzCqqO/blobs/sNCwigOmCHYVvoq0htrG/image.png" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://content.gitbook.com/content/cjAISi6xXwQD05JzCqqO/blobs/bDj23Ifetq6s2vErIM3t/image.png" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://content.gitbook.com/content/cjAISi6xXwQD05JzCqqO/blobs/x2Sjr2uXa2Pxf6A2LcOJ/image.png" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://content.gitbook.com/content/cjAISi6xXwQD05JzCqqO/blobs/iVgS7ujR410OhihgAfop/image%20(2).png" alt=""><figcaption></figcaption></figure>

## Flags

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

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