Skip to content

CLI Relay Commands

These commands let you interact with relays and rules directly, without a config file.

Terminal window
beeps relay list
beeps relay list --json
Terminal window
beeps relay create --name "Production Alerts" --external-key prod-alerts
beeps relay create --name "Production Alerts" --description "Routes critical incidents" --json

Validate a relay’s rules, schedules, and contact method coverage.

Terminal window
beeps relay lint --relay-id rly_abc123
beeps relay lint --relay-id rly_abc123 --coverage-days 7 --json

Preview who would be notified at a specific time.

Terminal window
beeps relay simulate --relay-id rly_abc123 --simulate-at 2025-01-01T00:00:00Z
beeps relay simulate --relay-id rly_abc123 --simulate-at 2025-01-01T00:00:00Z --payload alert.json
cat alert.json | beeps relay simulate --relay-id rly_abc123 --simulate-at 2025-01-01T00:00:00Z --payload -
Terminal window
beeps relay rule list --relay-id rly_abc123
beeps relay rule list --relay-id rly_abc123 --enabled
beeps relay rule list --relay-id rly_abc123 --rule-type webhook --json
Terminal window
beeps relay rule get --relay-id rly_abc123 --rule-id rul_def456
beeps relay rule get --relay-id rly_abc123 --rule-id rul_def456 --json
Terminal window
beeps relay rule create --relay-id rly_abc123 \
--name "Notify On-Call" \
--rule-type schedule_notify \
--config '{"scheduleId":"sch_def456"}'
beeps relay rule create --relay-id rly_abc123 \
--name "Slack Hook" \
--rule-type webhook \
--group agents \
--order 1 \
--config '{"endpoint":"https://hooks.slack.com/..."}'
Terminal window
beeps relay rule delete --relay-id rly_abc123 --rule-id rul_def456
Terminal window
beeps webhook list --relay-id rly_abc123
beeps webhook list --relay-id rly_abc123 --json

For managing relays declaratively via a config file, see Config-as-Code.

Terminal window
beeps relay plan -f beeps.config.ts
beeps relay apply -f beeps.config.ts
beeps relay apply -f beeps.config.ts --dry-run
beeps relay export -o beeps.config.ts
  • 0 success
  • 1 validation failure or API error