CLI
The beeps CLI lets you manage relays, schedules, alerts, and integrations directly from the command line — or define your entire on-call setup as code.
Installation
Section titled “Installation”npm install -g @beepsdev/clinpx @beepsdev/cli --helpConfiguration
Section titled “Configuration”The CLI needs one environment variable:
| Variable | Required | Description |
|---|---|---|
BEEPS_API_KEY | Yes | Your API key from organization settings (looks like bk_xxxxxxxx) |
export BEEPS_API_KEY="bk_your_api_key_here"Quick Commands
Section titled “Quick Commands”See who’s on call
Section titled “See who’s on call”beeps schedule on-call --schedule-id sch_abc123List active alerts
Section titled “List active alerts”beeps alert list --activeResolve an alert
Section titled “Resolve an alert”beeps alert resolve --alert-id alt_abc123List relays
Section titled “List relays”beeps relay listSimulate a relay
Section titled “Simulate a relay”beeps relay simulate --relay-id rly_abc123 --simulate-at 2025-03-01T00:00:00ZDefine your setup as code
Section titled “Define your setup as code”beeps relay export -o beeps.config.ts # export current setupbeeps relay plan -f beeps.config.ts # preview changesbeeps relay apply -f beeps.config.ts # apply changesReference
Section titled “Reference”- Config-as-Code — define relays, schedules, and rules in TypeScript
- Relay Commands — manage relays and rules directly
All commands support --json for machine-readable output and --help for usage info.