# create-alert

The llm create-alert command creates a new alert for your LLM project. This alert monitors specific conditions such as coin balance or spending threshold, and automatically sends notifications when the configured criteria are met.

## Usage

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

## Aliases

```
create-alert, add-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 create-alert
```

2. The terminal opens an interactive interface (TUI) where you can input each alert configuration field step by step.
3. Enter a name for the alert.
4. Provide a short description of the alert.
5. Choose the metric to monitor.
6. Select the condition that triggers the alert.
7. Enter the threshold value that determines when the alert should trigger.
8. Enter one or more email addresses (comma-separated) to receive alert notifications.
9. Specify how often the condition should be checked in the Period field.
10. Select the time unit for the period.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FrqcnIFjRmLvMxi8kDbTK%2Funknown.png?alt=media&#x26;token=8cfde8fe-8fac-4e98-af1f-a85da08a560b" alt=""><figcaption></figcaption></figure>

11. When all required fields are completed, the terminal displays a confirmation prompt “Create this LLM Alert?”. Use ←/→ to toggle between Confirm and Cancel, then press y or Enter to confirm, or n to cancel.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FSkEiiUd9aJgNqsavPxAP%2Funknown.png?alt=media&#x26;token=6aa8cea5-cc33-433b-8a51-27efacd44636" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2F61wdsmwrFN4fIIhwTpr3%2Funknown.png?alt=media&#x26;token=aebe9d39-0d73-4b38-9216-36b3ebdc97c8" 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 llm create-alert command. |
