Skip to main content
Manage notification policies from the command line. Define match rules and connect policies to alert channels via escalation chains.

Commands

CommandDescription
devhelm notification-policies listList all policies
devhelm notification-policies get <id>Get policy details
devhelm notification-policies createCreate a policy
devhelm notification-policies update <id>Update a policy
devhelm notification-policies delete <id>Delete a policy
devhelm notification-policies test <id>Test a policy

notification-policies list

devhelm notification-policies list
FlagTypeDefaultDescription
--page-sizeinteger200Number of items per API request (1–200)

notification-policies get

devhelm notification-policies get 42 -o json

notification-policies create

Create a new notification policy with associated alert channels.
devhelm notification-policies create \
  --name "Production Alerts" \
  --channel-ids 1,2,3 \
  --enabled
FlagTypeRequiredDescription
--namestringYesPolicy display name
--channel-idsstringComma-separated alert channel IDs for the escalation step
--enabled / --no-enabledbooleanWhether the policy is active (default: true)

notification-policies update

devhelm notification-policies update 42 \
  --name "Production Alerts (critical)" \
  --channel-ids 1,2,3,4
Supports the same flags as create.

notification-policies delete

devhelm notification-policies delete 42

notification-policies test

Send a test notification through the policy to verify it triggers correctly.
devhelm notification-policies test 42

Next steps

Notification policies

Understanding match rules and escalation logic.

Escalation chains

Multi-step escalation with delays and conditions.