> 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/panduan-untuk-enterprise/cloudeka-api-list/command-reference/cldkctl-llm/edit-alert.md).

# edit-alert

The llm edit-alert command modifies an existing LLM alert within your project. It allows you to update details such as the alert name, description, metric, variable, threshold, notification email, and alert period.

## Usage

```
cldkctl llm edit-alert [flags]
```

## Aliases

```
edit-alert, modify-alert
```

## Steps

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

1. Run the following command in your terminal:

```
cldkctl llm edit-alert --alert [alert id]
```

2. Replace \[alert id] with the ID of the alert you want to modify. You can find the alert ID by running the command in the llm list-alert section.
3. The terminal will display the current configuration of the selected alert.
4. Update the desired fields you need.

<figure><img src="https://753761090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtAYQyBIz2BclZ3ZHHlS4%2Fuploads%2Fgit-blob-1922fb512d2bb0666e66b1a2187a4801242c9ac7%2Funknown.png?alt=media" alt=""><figcaption></figcaption></figure>

5. After completing your changes, a confirmation prompt appears asking Update this LLM Alert?. Use ←/→ to toggle between Update and Cancel, then press y or Enter to confirm the update, or n to cancel the operation

<figure><img src="https://753761090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtAYQyBIz2BclZ3ZHHlS4%2Fuploads%2Fgit-blob-2319ea975f5c3311f2e19b623f6ee7539fc6e44f%2Funknown.png?alt=media" alt=""><figcaption></figcaption></figure>

6. Once completed successfully, a message "✓ LLM Alert updated successfully!" will appear in your terminal.

<figure><img src="https://753761090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtAYQyBIz2BclZ3ZHHlS4%2Fuploads%2Fgit-blob-cc90d1148fba8f08c1ea4b7e9900186d6373580a%2Funknown.png?alt=media" alt=""><figcaption></figcaption></figure>

## Flags

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

| Flag               | Description                          |
| ------------------ | ------------------------------------ |
| -a, --alert string | Specify the alert ID to edit.        |
| -h, --help         | Help for the llm edit-alert command. |
