Skip to main content
The Rootly CLI is a command-line interface for managing Rootly resources directly from your terminal. Built for engineers who prefer working in the terminal, it provides fast access to incidents, alerts, services, teams, and on-call schedules.

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
  • Pulses: Track events and wrap command execution with automatic pulse recording
  • 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

  1. Set your API key:
  2. List your incidents:
  3. Get incident details:

Configuration

Set your API token via environment variable or config file:
Or create a config file at ~/.rootly-cli/config.yaml:

Getting an API Key

  1. Log in to your Rootly account
  2. Navigate to Settings > API Keys
  3. Create a new API key with appropriate permissions

Commands

Incidents

Alerts

Services

Teams

On-Call

Pulses

The pulse run variant automatically captures the wrapped command’s exit code as a label (exit_status).

Output Formats

The CLI supports multiple output formats via the --format flag:

Pagination & Filtering

Global Flags

Shell Completions

Generate shell completion scripts for tab-completion support:

Feedback & Support