pulsarctl
$ pulsarctl Official Med RiskDeveloped by StreamNative, pulsarctl is a fast Go replacement for Java-based pulsar-admin, covering Pulsar tenants, namespaces, topics, schemas, and functions. Commands like pulsarctl topics stats emit JSON natively while list commands support --output=json.
brew install streamnative/streamnative/pulsarctl pulsarctl executes sub-second Go admin/stats calls against Pulsar clusters without JVM cold starts.
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
Fast Go startup, --output=json on list commands, and native JSON on topics stats, though flag availability varies slightly across older subcommands.
--output=jsonon resource listings and native JSON ontopics stats
Context isolation (pulsarctl context) and JWT/OAuth2 auth are solid, though destructive commands (topics delete, tenants delete) lack --dry-run.
- Named context switching in
~/.config/pulsar/config - No
--dry-runon destructive admin calls
Single Go binary installable via Homebrew tap and GitHub releases without needing Java/JVM.
- Avoids JVM dependency of
bin/pulsar-admin
Comprehensive coverage of Pulsar admin REST APIs (tenants, namespaces, topics, functions, connectors, schemas).
- Full Pulsar cluster and Function admin surface
Maintained by StreamNative (streamnative/pulsarctl) under Apache-2.0 license.
- Official
streamnative/pulsarctlrepository
Well-documented subcommand reference on StreamNative docs and built-in --help.
- Command docs at docs.streamnative.io
Security, Auth & Guardrails
Stores named contexts and JWT/OAuth2/TLS config under ~/.config/pulsar/config, plus --admin-service-url and --token flags.
Apache-2.0 open-source CLI; completely free.
# pulsarctl Agent Rules - Pass `--output=json` on list commands and verify `pulsarctl context current` before writes. - Never run `topics delete`, `namespaces delete`, or `topics unload` on production namespaces without explicit approval.
Agent-Ready Command Recipes
Safe Read-Only Queries
pulsarctl topics list public/default --output=json
Lists all topics under the public/default namespace in structured JSON.
pulsarctl topics stats persistent://public/default/events
Returns native JSON statistics covering publishers, subscriptions, and message backlogs.
Controlled Writes & Previews
pulsarctl topics create persistent://public/default/events 4
Creates a Pulsar topic with 4 partitions in the specified namespace.
Strengths for Agents
- + Eliminates multi-second JVM startup overhead of Apache Pulsar's stock
pulsar-admin. - +
topics statsoutputs rich JSON natively andlistcommands support--output=json. - + Supports named contexts plus JWT, OAuth2, and mTLS authentication.
Caveats & Pitfalls
- ! Requires
--admin-service-urlor configured context;-o jsonis not uniform on every single subcommand. - ! Large admin surface includes destructive tenant/namespace deletion without
--dry-run.