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

Ably CLI

$ ably Official Med Risk
Ably · Workspace & SaaS · Apache-2.0 · macos / linux / windows

Ably CLI (ably) manages Ably Control API apps, keys, queues, and integrations while providing terminal Pub/Sub channel publishing, subscribing, logs, and stats. Native --json (compact single-line NDJSON) and --pretty-json flags make it easy to pipe into jq, though subscriptions stream indefinitely until bounded.

FCRS-1.0 Score
82 /100
Good
Medium Confidence
Zero-Friction Install
npm install -g @ably/cli
CLI vs MCP Decision CLI Preferred vs MCP

Single-line NDJSON (--json) for Control API reads, stats, and one-shot channels publish integrates cleanly into shell workflows.

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 21 / 25

First-class --json (compact NDJSON without ANSI colors) and ably init agent-skill support; streaming commands need caller timeouts.

  • Global --json NDJSON output flag
  • Built-in agent skill setup in ably init
Trust & Safety 19 / 25

Read commands (apps list, stats, status) are safe, while channels publish and Control API writes take effect immediately without --dry-run.

  • Read-only apps list and status
  • No --dry-run on channels publish or apps mutations
Setup & Portability 12 / 15

Available globally via npm (@ably/cli) and npx @ably/cli across macOS, Linux, and Windows.

  • Published as @ably/cli on npm
Utility & Efficiency 13 / 15

Unifies Control API management, Pub/Sub testing, Chat rooms, Spaces, queues, logs, and benchmarking.

  • Covers apps, auth, channels, queues, logs, stats, and bench
Maintenance & Lineage 9 / 10

Official Ably repository (ably/ably-cli) actively maintained under Apache-2.0.

  • Official ably/ably-cli repository
Docs & Verifiability 8 / 10

Documented at ably.com/docs/cli with clear --help tree.

  • Official Ably CLI reference docs

Security, Auth & Guardrails

Auth Modes
OAuth Browser Env API Key Config File
Credential Storage

Stores Ably account access tokens locally via ably accounts login, and supports explicit --api-key or ABLY_API_KEY for channel operations.

Side Effects
Read-Only Remote Write Destructive
Cost & Quotas

Apache-2.0 open-source CLI; Ably offers a free tier up to 6M messages/month.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Ably CLI Agent Rules
- Always pass `--json` (never `--pretty-json`) so output stays uncolored single-line NDJSON.
- Never leave `ably channels subscribe` or `ably logs` running unbounded in a tool call without a timeout.

Agent-Ready Command Recipes

Safe Read-Only Queries

List Ably apps in NDJSON
ably apps list --json

Lists configured Ably applications as compact newline-delimited JSON.

Check Ably service status and app stats
ably status --json

Queries Ably operational status without mutating account or channel state.

Controlled Writes & Previews

Publish a test event to a Pub/Sub channel
ably channels publish test-channel '{"event":"ping"}' --json

Publishes a single JSON message to a non-production channel and prints structured confirmation.

Strengths for Agents

  • + --json emits clean, color-free NDJSON suited for jq and agent parsing.
  • + Covers both Control API administration and live Pub/Sub channel diagnostics.

Caveats & Pitfalls

  • ! Subscription and log-tailing subcommands stream indefinitely unless bounded.
  • ! Write operations lack --dry-run previews.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI