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

# infraudit alert — security and operational alert commands

> infraudit alert list, get, acknowledge — manage security alerts. Key flags: --severity critical|high|medium|low, --status open|acknowledged, --type.

The `alert` command group manages security and operational alerts generated by InfraAudit scans and monitoring rules. You can filter alerts by severity, type, and status, and acknowledge or resolve them from the CLI.

## `alert list`

List alerts with optional filters.

**Synopsis:**

```bash theme={null}
infraudit alert list [flags]
```

| Flag         | Values                                  | Description              |
| ------------ | --------------------------------------- | ------------------------ |
| `--severity` | `critical`, `high`, `medium`, `low`     | Filter by severity level |
| `--status`   | `open`, `acknowledged`, `resolved`      | Filter by alert status   |
| `--type`     | `security`, `compliance`, `performance` | Filter by alert category |

Examples:

```bash theme={null}
# List all open alerts
infraudit alert list

# Show high and critical open alerts
infraudit alert list --severity high --status open

# List security alerts
infraudit alert list --type security

# Count open critical alerts for CI gating
infraudit alert list --severity critical --status open -o json | jq 'length'
```

## `alert get`

Show full details for a specific alert, including the affected resource, trigger condition, and recommended action:

**Synopsis:**

```bash theme={null}
infraudit alert get <alert-id>
```

Example:

```bash theme={null}
infraudit alert get 12
```

## `alert summary`

Show an aggregate count of alerts grouped by severity and status:

```bash theme={null}
infraudit alert summary
```

## `alert acknowledge`

Acknowledge an alert to indicate that it has been seen and is under investigation. The alert remains open until resolved:

**Synopsis:**

```bash theme={null}
infraudit alert acknowledge <alert-id>
```

Example:

```bash theme={null}
infraudit alert acknowledge 12
```

## `alert resolve`

Mark an alert as resolved after addressing the underlying condition:

**Synopsis:**

```bash theme={null}
infraudit alert resolve <alert-id>
```

Example:

```bash theme={null}
infraudit alert resolve 12
```

<Tip>
  To receive alerts via Slack, email, or webhook without polling the CLI, configure notification channels with [`infraudit notification`](/cli/commands/notification) or webhooks with [`infraudit webhook`](/cli/commands/webhook).
</Tip>
