Query, triage, and automate Rollbar from the terminal.
rollbar-cli is a single-binary CLI for engineers who want fast access to Rollbar items, occurrences, deploys,
environments, and users without living in the browser. It supports terminal-friendly views for manual triage and stable
JSON or NDJSON output for scripts, CI jobs, and agent workflows.
- Find active production errors quickly with filtering by status, level, environment, time range, sort order, and paging.
- Inspect an item and its occurrences from one command.
- Resolve, mute, assign, snooze, or update items without opening the Rollbar UI.
- Export normalised JSON, raw API JSON, or NDJSON for automation.
- Track deploys and inspect account metadata from the same CLI.
- Install an optional AI skill for Codex, Claude Code, Cursor, Windsurf, and similar tools.
The official Rollbar CLI is primarily aimed at source maps and deployment
workflows. rollbar-cli is aimed at querying and triaging Rollbar data during development and incident response.
Download the latest archive for your platform from GitHub Releases.
Install Go first if go is not already available on your machine.
- macOS:
brew install goor install the official package from go.dev/dl - Linux: use your distro package manager or install from go.dev/dl
- Windows: install from go.dev/dl
Verify the install:
go version
# example: go version go1.26.0 darwin/arm64Then install rollbar-cli:
go install github.com/davebarnwell/rollbar-cli@latestgit clone https://github.com/davebarnwell/rollbar-cli.git
cd rollbar-cli
# If you want a specific release,
# git checkout <tag-or-branch>
make build
./bin/rollbar-cli --helpmake installmake install-skillmake install-allmake install installs only the rollbar-cli binary from your current checkout. make install-skill installs only
the AI skill. Use make install-all if you want both.
export ROLLBAR_ACCESS_TOKEN=rbac_...
# list active production issues
rollbar-cli items list --status active --environment production
# inspect one item with occurrence details
rollbar-cli items get --id 275123456 --instances --json
# take action on an item
rollbar-cli items resolve --id 275123456 --resolved-in-version aabbcc1
# inspect recent deploys
rollbar-cli deploys list --limit 10If you built locally with make build, use ./bin/rollbar-cli ... instead.
rollbar-cli items list \
--status active \
--environment production \
--level error \
--last 24h \
--sort last_occurrence_timestamp_descrollbar-cli items get --id 275123456 --instances --payload summary --payload-section requestrollbar-cli items watch --status active --environment production --interval 30s --count 10rollbar-cli items list --status active --json
rollbar-cli items list --status active --ndjson --limit 20
rollbar-cli items list --status active --raw-jsonMore examples: EXAMPLES.md
Provide a Rollbar token with the scopes needed for the command you want to run.
- Queries generally need a project token with
readscope. - Item updates need a token with
readandwritescope. users listneeds an account-scoped token that can read account users.
Configuration sources:
--tokenROLLBAR_ACCESS_TOKEN--configand--profileROLLBAR_CLI_CONFIG- default config file:
~/.config/rollbar-cli/config.json
Additional environment overrides:
ROLLBAR_BASE_URLROLLBAR_TIMEOUT
Example config:
{
"default_profile": "prod",
"profiles": {
"prod": {
"token": "rbac_...",
"base_url": "https://api.rollbar.com",
"timeout": "15s"
}
}
}Flag values take precedence over config and environment defaults.
Use the output format that matches the job:
- default text/TUI output for interactive triage
--jsonfor normalized, stable CLI JSON--raw-jsonfor Rollbar API envelopes--ndjsonfor line-oriented pipelines
The item TUI shows item IDs and supports enter to load occurrences, o to toggle details, y to copy the item ID,
and r or m to resolve or mute the selected row.
Top-level command groups:
itemsoccurrencesdeploysenvironmentsuserscompletion
For full examples and command patterns, see EXAMPLES.md.
rollbar-cli completion bash
rollbar-cli completion zsh
rollbar-cli completion fish
rollbar-cli completion powershellThis repository includes an optional skill at .ai/skills/rollbar-cli/SKILL.md for agent-driven Rollbar investigation
workflows.
Install it with:
make install-skillmake test
make test-cover
make helpContribution guidelines: CONTRIBUTING.md
MIT. See LICENSE.