Features
- Incidents: Full CRUD operations with filtering by status, severity, and more
- Alerts: Create, acknowledge, and resolve alerts with source tracking
- Services & Teams: Manage your service catalog and team structure
- On-Call: Query schedules, view shifts, and see who is on-call right now
- Multiple Output Formats: Table, JSON, YAML, and Markdown
- TTY-Aware Output: Table format in terminal, JSON when piped
- Shell Completions: Bash, Zsh, Fish, and PowerShell
- Pagination & Filtering: Server-side filtering with paginated results
Installation
Using Homebrew (macOS/Linux)
Using Go
Download Binary
Download the latest release from GitHub Releases. Available for Linux (amd64/arm64), macOS (Intel/Apple Silicon), and Windows (amd64).Quick Start
-
Set your API key:
-
List your incidents:
-
Get incident details:
Configuration
Set your API token via environment variable or config file:~/.rootly-cli/config.yaml:
Getting an API Key
- Log in to your Rootly account
- Navigate to Settings > API Keys
- Create a new API key with appropriate permissions
Commands
Incidents
Alerts
Services
Teams
On-Call
Output Formats
The CLI supports multiple output formats via the--format flag:
| Format | Description |
|---|---|
table | Human-readable table (default in terminal) |
json | JSON output (default when piped) |
yaml | YAML output |
markdown | Markdown table |
Pagination & Filtering
Global Flags
| Flag | Description |
|---|---|
--api-token | Rootly API token (env: ROOTLY_API_TOKEN) |
--endpoint | Rootly API endpoint (default: api.rootly.com) |
--format | Output format: table, json, yaml, markdown (default: table) |
--no-color | Disable colored output |
--help | Show help for any command |
Shell Completions
Generate shell completion scripts for tab-completion support:Feedback & Support
- Issues: GitHub Issues
- Source Code: GitHub Repository