Ably CLI
$ ably Official Med RiskAbly 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.
npm install -g @ably/cli Single-line NDJSON (--json) for Control API reads, stats, and one-shot channels publish integrates cleanly into shell workflows.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
First-class --json (compact NDJSON without ANSI colors) and ably init agent-skill support; streaming commands need caller timeouts.
- Global
--jsonNDJSON output flag - Built-in agent skill setup in
ably init
Read commands (apps list, stats, status) are safe, while channels publish and Control API writes take effect immediately without --dry-run.
- Read-only
apps listandstatus - No
--dry-runonchannels publishorappsmutations
Available globally via npm (@ably/cli) and npx @ably/cli across macOS, Linux, and Windows.
- Published as
@ably/clion npm
Unifies Control API management, Pub/Sub testing, Chat rooms, Spaces, queues, logs, and benchmarking.
- Covers
apps,auth,channels,queues,logs,stats, andbench
Official Ably repository (ably/ably-cli) actively maintained under Apache-2.0.
- Official
ably/ably-clirepository
Documented at ably.com/docs/cli with clear --help tree.
- Official Ably CLI reference docs
Security, Auth & Guardrails
Stores Ably account access tokens locally via ably accounts login, and supports explicit --api-key or ABLY_API_KEY for channel operations.
Apache-2.0 open-source CLI; Ably offers a free tier up to 6M messages/month.
# 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
ably apps list --json
Lists configured Ably applications as compact newline-delimited JSON.
ably status --json
Queries Ably operational status without mutating account or channel state.
Controlled Writes & Previews
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
- +
--jsonemits clean, color-free NDJSON suited forjqand 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-runpreviews.