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 --helpAuthentication
Section titled “Authentication”Set your API key as an environment variable:
export BEEPS_API_KEY="bk_your_api_key_here"Or use a JSON config file:
{ "apiKey": "bk_your_api_key_here", "baseUrl": "https://api.beeps.dev/v0"}beeps relay list --config ./beeps.cli.json# or set once via environment variableexport BEEPS_CLI_CONFIG="./beeps.cli.json"Resolution order (highest priority first): --api-key flag > config file > BEEPS_API_KEY environment variable.
Global Options
Section titled “Global Options”These flags are available on every command:
| Flag | Description |
|---|---|
--api-key <key> | API key for authentication |
--base-url <url> | Custom API endpoint |
--config <file> | Path to a JSON config file |
--timeout <ms> | Request timeout in milliseconds (default: 10000) |
--retries <count> | Number of retry attempts (default: 2) |
--json | Output machine-readable JSON |
--help | Show usage info |
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 --activeRespond to an alert
Section titled “Respond to an alert”beeps alert on-it --alert-id alt_abc123Resolve 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 changesCommand Reference
Section titled “Command Reference”beeps├── alert│ ├── list [--active] [--resolved]│ ├── get --alert-id <id>│ ├── on-it --alert-id <id> [--user-id <id>]│ ├── assign --alert-id <id> --user-id <id>│ ├── resolve --alert-id <id>│ ├── responders --alert-id <id>│ ├── agents --alert-id <id>│ └── fix-context --alert-id <id>├── relay│ ├── list│ ├── create --name <name> [--external-key <key>]│ ├── lint --relay-id <id> [--coverage-days <n>]│ ├── simulate --relay-id <id> --simulate-at <iso>│ ├── plan -f <config>│ ├── apply -f <config> [--prune] [--dry-run]│ ├── export -o <file>│ └── rule│ ├── list --relay-id <id>│ ├── get --relay-id <id> --rule-id <id>│ ├── create --relay-id <id> --name <name> --rule-type <type>│ └── delete --relay-id <id> --rule-id <id>├── schedule│ ├── list│ ├── create --name <name> --relay-id <id> --type <type> ...│ ├── on-call --schedule-id <id>│ ├── assignments --schedule-id <id> [--count <n>]│ ├── add-member --schedule-id <id> (--email <email> | --user-id <id>)│ ├── remove-member --schedule-id <id> --user-id <id>│ └── override│ ├── create --schedule-id <id> --user-id <id> --start-at <iso> --end-at <iso>│ ├── list --schedule-id <id>│ ├── update --schedule-id <id> --override-id <id>│ └── cancel --schedule-id <id> --override-id <id>├── integration│ ├── list│ ├── get --integration-id <id>│ ├── create --provider <provider> --name <name> --api-key-env <var>│ ├── update --integration-id <id>│ └── delete --integration-id <id>├── webhook│ └── list --relay-id <id>├── agent-job│ ├── list│ ├── get --job-id <id>│ └── status --job-id <id>├── member│ └── list└── config └── lint -f <config>Reference
Section titled “Reference”- Config-as-Code — define relays, schedules, and rules in TypeScript
- Relay Commands — manage relays and rules directly
- Schedule Commands — manage schedules, members, and overrides
- Alert Commands — triage, respond to, and resolve alerts
- Integration Commands — connect AI agents and notification services
All commands support --json for machine-readable output and --help for usage info.