> 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/guidance-for-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="/files/JRB43Bl8jG3ekbIswn5j" 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="/files/A2Q68Wtt0S46i9vhXvJC" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/BZagF3XjLVSScZ4oyrtD" alt=""><figcaption></figcaption></figure>

## Flags

{% hint style="info" %}
This command supports [global flags](/guidance-for-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. |
