Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

PagerDuty CLI

$ pd Community Med Risk
Community (martindstone) · Workspace & SaaS · ISC · macos / linux / windows

PagerDuty CLI (pd) wraps PagerDuty's REST API in an oclif Node.js CLI for listing incidents, checking on-call schedules, acknowledging alerts, and invoking raw pd rest endpoints. While practical for SRE triage with --json, the upstream repository (martindstone/pagerduty-cli) is no longer actively maintained.

FCRS-1.0 Score
71 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
npm install -g pagerduty-cli
CLI vs MCP Decision Hybrid (CLI + MCP)

Use pd for quick read-only incident/schedule checks or raw pd rest calls, or prefer an actively maintained PagerDuty MCP/API integration for production on-call automation.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 18 / 25

Supports --json on list commands and PD_API_KEY env var auth, though some older oclif flags vary across subcommands.

  • --json supported on incident list and service list
  • pd rest escape hatch covers arbitrary REST endpoints
Trust & Safety 18 / 25

Read-only API tokens can be scoped in PagerDuty, but unmaintained npm dependencies reduce security assurance.

  • Supports read-only PagerDuty REST API keys
  • No security patches upstream after maintainer deprecation notice
Setup & Portability 12 / 15

Standard global npm package (pagerduty-cli) across Node.js platforms, though aging Node dependency tree may warn.

  • npm install -g pagerduty-cli
Utility & Efficiency 12 / 15

Convenient for incident triage, schedules, and pd rest scripting when an official CLI is absent.

  • Covers incident, service, schedule, and rest topics
Maintenance & Lineage 4 / 10

Community repository (martindstone/pagerduty-cli) explicitly marked as no longer actively maintained.

  • Maintainer notice on GitHub stating repository is unmaintained
Docs & Verifiability 7 / 10

Documented via GitHub README and built-in pd help, though no official vendor docs exist.

  • README and oclif --help pages

Security, Auth & Guardrails

Auth Modes
Env API Key Config File
Credential Storage

Stores API tokens in ~/.config/pagerduty-cli/config.json via pd auth:set or reads PD_API_KEY from the environment.

Side Effects
Read-Only Remote Write
Cost & Quotas

CLI is free (ISC); requires a PagerDuty subscription.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# PagerDuty CLI Agent Rules
- Restrict autonomous runs to read-only `list` / `show` commands with `--json`.
- NEVER acknowledge, resolve, or trigger incidents (`incident ack`, `resolve`, `create`) without explicit on-call human approval.
- Audit `pagerduty-cli` dependencies before installing in sensitive environments, as upstream is unmaintained.

Agent-Ready Command Recipes

Safe Read-Only Queries

List triggered PagerDuty incidents as JSON
pd incident list --statuses triggered --json

Retrieves currently triggered incidents in JSON for read-only SRE triage.

List PagerDuty services
pd service list --json

Enumerates monitored services and their status in structured JSON.

Controlled Writes & Previews

Acknowledge an active incident
pd incident ack --ids P123456

Marks a specific incident ID as acknowledged during human-supervised incident response.

Strengths for Agents

  • + Clean --json output on incident and service queries plus a pd rest fallback.
  • + Supports PD_API_KEY environment-variable auth for headless triage.
  • + Useful stopgap given PagerDuty lacks a widely adopted official CLI.

Caveats & Pitfalls

  • ! Upstream repository (martindstone/pagerduty-cli) is no longer actively maintained and carries aging npm dependencies.
  • ! Community-maintained rather than officially supported by PagerDuty.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI