CLI Relay Commands
These commands let you interact with relays and rules directly, without a config file.
Relay Commands
Section titled “Relay Commands”List relays
Section titled “List relays”beeps relay listbeeps relay list --jsonCreate a relay
Section titled “Create a relay”beeps relay create --name "Production Alerts" --external-key prod-alertsbeeps relay create --name "Production Alerts" --description "Routes critical incidents" --jsonLint a relay
Section titled “Lint a relay”Validate a relay’s rules, schedules, and contact method coverage.
beeps relay lint --relay-id rly_abc123beeps relay lint --relay-id rly_abc123 --coverage-days 7 --jsonSimulate a relay
Section titled “Simulate a relay”Preview who would be notified at a specific time.
beeps relay simulate --relay-id rly_abc123 --simulate-at 2025-01-01T00:00:00Zbeeps relay simulate --relay-id rly_abc123 --simulate-at 2025-01-01T00:00:00Z --payload alert.jsoncat alert.json | beeps relay simulate --relay-id rly_abc123 --simulate-at 2025-01-01T00:00:00Z --payload -Relay Rule Commands
Section titled “Relay Rule Commands”List rules
Section titled “List rules”beeps relay rule list --relay-id rly_abc123beeps relay rule list --relay-id rly_abc123 --enabledbeeps relay rule list --relay-id rly_abc123 --rule-type webhook --jsonGet a rule
Section titled “Get a rule”beeps relay rule get --relay-id rly_abc123 --rule-id rul_def456beeps relay rule get --relay-id rly_abc123 --rule-id rul_def456 --jsonCreate a rule
Section titled “Create a rule”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/..."}'Delete a rule
Section titled “Delete a rule”beeps relay rule delete --relay-id rly_abc123 --rule-id rul_def456Webhook Commands
Section titled “Webhook Commands”List webhooks
Section titled “List webhooks”beeps webhook list --relay-id rly_abc123beeps webhook list --relay-id rly_abc123 --jsonConfig-as-Code Commands
Section titled “Config-as-Code Commands”For managing relays declaratively via a config file, see Config-as-Code.
beeps relay plan -f beeps.config.tsbeeps relay apply -f beeps.config.tsbeeps relay apply -f beeps.config.ts --dry-runbeeps relay export -o beeps.config.tsExit Codes
Section titled “Exit Codes”0success1validation failure or API error