Skip to main content
Manage alert channels from the command line. Create channels, update configs, and send test notifications.
Alert channel IDs are UUIDs. The CLI validates the format locally before calling the API. Get IDs from devhelm alert-channels list.

Commands

alert-channels list

alert-channels get

alert-channels create

Create a new alert channel.
Channel type values are lowercase everywhere — in the CLI --type flag, in --config JSON, and in the YAML channelType field. Both surfaces validate against the same OpenAPI enum and reject uppercase values.

Examples by type

Configuring channels that need extra fields

For channels that need more than a webhook URL, pass the configuration as a JSON string with --config. The CLI validates the JSON locally against the matching schema for these 7 types only: email, webhook, slack, pagerduty, opsgenie, teams, discord. For the remaining types (telegram, google_chat, pushover, mattermost, splunk_oncall, pushbullet, linear, incident_io, rootly, zapier, datadog, jira, gitlab), the --config flag rejects the payload before it reaches the API, and there are no dedicated flags for their fields (bot tokens, API keys, project IDs, …). Configure those channels via config-as-code or the dashboard instead:
Config-as-code

alert-channels update

Supports the same flags as create (--name, --type, --config, --webhook-url), all optional.

alert-channels delete

Prompts for confirmation; pass --yes (-y) in scripts and CI.
Deleting a channel removes it from all notification policies that reference it. Verify the channel isn’t in use before deleting.

alert-channels test

Send a test notification through the channel to verify the configuration.

Next steps

Alert channels reference

Detailed configuration for each channel type.

Integrations

Setup guides for Slack, PagerDuty, OpsGenie, and more.