> ## 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 notification — notification channel commands

> infraudit notification list, create, delete — manage Slack and email channels. Key flags: --type slack|email, --config JSON for channel settings.

The `notification` command group (alias: `notif`) manages the notification channels InfraAudit uses to deliver alerts and scan results. You can enable or disable channels, check delivery history, and send test notifications.

## `notification list`

List all configured notification channels and their current state:

```bash theme={null}
infraudit notification list
infraudit notif preferences
```

Example output:

```
CHANNEL   ENABLED   LAST DELIVERY
-------   -------   -------------
email     true      10 minutes ago
slack     true      10 minutes ago
webhook   false     —
```

## `notification create`

Add a new notification channel.

**Synopsis:**

```bash theme={null}
infraudit notification create --type <channel-type> --config <json>
```

| Flag       | Values           | Description                    |
| ---------- | ---------------- | ------------------------------ |
| `--type`   | `slack`, `email` | Notification channel type      |
| `--config` | JSON string      | Channel-specific configuration |

Examples:

```bash theme={null}
# Add a Slack channel
infraudit notification create --type slack --config '{"webhook_url": "https://hooks.slack.com/services/..."}'

# Add an email channel
infraudit notification create --type email --config '{"address": "ops@example.com"}'
```

## `notification update`

Enable or disable an existing notification channel:

```bash theme={null}
# Enable email notifications
infraudit notif update email --enabled true

# Disable Slack notifications
infraudit notif update slack --enabled false
```

Available channels: `email`, `slack`, `webhook`

## `notification delete`

Remove a notification channel:

**Synopsis:**

```bash theme={null}
infraudit notification delete <channel-id>
```

Example:

```bash theme={null}
infraudit notification delete 3
```

## `notification history`

Show the delivery history for all notification channels:

```bash theme={null}
infraudit notif history
```

## `notification send`

Send a test notification to verify that a channel is working:

```bash theme={null}
infraudit notif send --channel email --message "Test notification from InfraAudit"
infraudit notif send --channel slack --message "Test notification from InfraAudit"
```

<Note>
  For event-driven HTTP callbacks to external systems, use the [`webhook`](/cli/commands/webhook) command group instead.
</Note>
