> ## Documentation Index
> Fetch the complete documentation index at: https://docs.simplismart.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Alerting Commands

> CLI commands for reading alert channels, rules and presets on the Simplismart platform

Read alert channels, alert rules and alert presets using `simplismart alerting`. These commands are read-only.

### List Alert Channels

Lists the alert channels in your organization.

```bash theme={null}
simplismart alerting channels
```

This command takes no options.

### Get Alert Channel

Gets one alert channel by ID.

```bash theme={null}
simplismart alerting get-channel [options]
```

| Option | Description |
| - | - |
| `--channel-id ID` | Alert channel ID (required) |

**Example:**

```bash theme={null}
simplismart alerting get-channel --channel-id <CHANNEL_ID>
```

### List Alert Rules

Lists alert rules, optionally filtered by deployment or workspace.

```bash theme={null}
simplismart alerting rules [options]
```

| Option | Description |
| - | - |
| `--deployment-id UUID` | Only return rules for this deployment |
| `--workspace-id UUID` | Only return rules for this workspace |

**Example:**

```bash theme={null}
simplismart alerting rules --deployment-id <DEPLOYMENT_ID>
```

### Get Alert Rule

Gets one alert rule by ID.

```bash theme={null}
simplismart alerting get-rule [options]
```

| Option | Description |
| - | - |
| `--alert-id ID` | Alert rule ID (required) |

**Example:**

```bash theme={null}
simplismart alerting get-rule --alert-id <ALERT_ID>
```

### List Alert Presets

Lists the available alert presets, optionally for a specific deployment.

```bash theme={null}
simplismart alerting presets [options]
```

| Option | Description |
| - | - |
| `--deployment-id UUID` | Deployment UUID |

**Example:**

```bash theme={null}
simplismart alerting presets --deployment-id <DEPLOYMENT_ID>
```

### List Alert Deployments

Lists the deployments you can set up alerts for.

```bash theme={null}
simplismart alerting deployments
```

This command takes no options.

### List Alert Rules by Deployment

Lists the alert rules for one deployment.

```bash theme={null}
simplismart alerting rules-by-deployment [options]
```

| Option | Description |
| - | - |
| `--deployment-id UUID` | Deployment UUID (required) |

**Example:**

```bash theme={null}
simplismart alerting rules-by-deployment --deployment-id <DEPLOYMENT_ID>
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.