# Manage alerts using the CLI

Using the CLI, you can:

* [Display alert types](#view-alerts)
* [View alerts](#mute-alerts)
* [Mute alerts](#mute-alerts)
* [Unmute alerts](#unmute-alerts)

## **Display alert types**

**Command:** `weka alerts types`

Use this command to list all possible types of alerts that the WEKA cluster can return.

**Command:**`weka alerts describe`

Use this command to describe all the alert types the WEKA cluster can return, along with possible corrective actions for each alert.

## **View alerts**

**Command:** `weka alerts`

Use the following command line to list all alerts (muted and unmuted) in the WEKA cluster:

`weka alerts [--muted]`

**Parameters**

| **Name** | **Type** | **Value**                                    | **Limitations** | **Mandatory** | **Default** |
| -------- | -------- | -------------------------------------------- | --------------- | ------------- | ----------- |
| `muted`  | Boolean  | List muted alerts alongside the unmuted ones |                 | No            | False       |

## **Mute alerts**

**Command:** `weka alerts mute`

Use the following command line to mute an alert type:

`weka alerts mute <alert-type> <duration>`

The system does not prompt muted alerts when listing active alerts. You must specify the duration in which the alert-type is muted. After the expiry of the specified duration, the system unmutes the alert-type automatically.

**Parameters**

| **Name**     | **Type** | **Value**                                                    | **Limitations**                  | **Mandatory** | **Default** |
| ------------ | -------- | ------------------------------------------------------------ | -------------------------------- | ------------- | ----------- |
| `alert-type` | String   | An alert-type to mute, use `weka alerts types` to list types |                                  | Yes           |             |
| `duration`   | String   | Expiration time for muting this alert type                   | Format: 3s, 2h, 4m, 1d, 1d5h, 1w | Yes           |             |

## **Unmute alerts**

**Command:** `weka alerts unmute`

Use the following command line to unmute a muted alert-type:

`weka alerts unmute <alert-type>`

**Parameters**

| **Name**     | **Type** | **Value**                                                      | **Limitations** | **Mandatory** | **Default** |
| ------------ | -------- | -------------------------------------------------------------- | --------------- | ------------- | ----------- |
| `alert-type` | String   | An alert-type to unmute, use `weka alerts types` to list types |                 | Yes           |             |

**Related topics**

[list-of-alerts](https://docs.weka.io/4.1/usage/alerts/list-of-alerts "mention")
