kafkactl
$ kafkactl Community Med Riskkafkactl brings kubectl-style verbs (get, describe, create, delete, consume, produce) to Apache Kafka clusters. Supports -o json / --output json across resource commands, context switching (config use-context), and Avro/Protobuf Schema Registry integration.
brew install kafkactl kafkactl get ... -o json gives agents kubectl-familiar JSON inspection and bounded --max-messages topic reads locally.
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
Consistent kubectl-style verbs (get, describe), -o json / --output json support, --only-with-lag filtering, and --max-messages bounded consumption.
- Supports
-o jsonacrossgetanddescribecommands - Supports
--max-messagesfor boundedconsume
Context isolation in config.yml and dry-run-by-default reset consumer-group-offset (requires --execute), though delete topic executes immediately.
reset consumer-group-offsetdefaults to dry-run unless--executeis passed
Single Go binary via Homebrew, go install, deb/rpm, and GitHub releases across macOS, Linux, and Windows.
- Static Go binary with
brew install kafkactl
Covers topics, consumer groups, ACLs, brokers, Avro/Protobuf decoding, and multi-cluster contexts in one lightweight CLI.
- Full Kafka resource lifecycle plus Schema Registry decoding
Actively maintained by deviceinsight/kafkactl under Apache-2.0 license with v5+ releases.
- Active
deviceinsight/kafkactlrepository under Apache-2.0
Well-structured command docs at deviceinsight.github.io/kafkactl/ and Cobra --help text.
- Complete command reference at deviceinsight.github.io/kafkactl
Security, Auth & Guardrails
Stores contexts, brokers, TLS certs, and SASL credentials in ~/.config/kafkactl/config.yml (overridable via KAFKA_CTL_CONFIG or env vars).
Apache-2.0 open-source CLI; completely free.
# kafkactl Agent Rules - Always pass `-o json` on `get` and `describe` commands, and `--max-messages <N>` on `kafkactl consume`. - Run `kafkactl config current-context` before mutations and never pass `--execute` on `reset` or run `delete` without approval.
Agent-Ready Command Recipes
Safe Read-Only Queries
kafkactl get topics -o json
Returns all visible topics with partition and replication counts in structured JSON.
kafkactl describe consumer-group orders-service -o json
Outputs partition offsets, lag, and active group members as JSON.
Controlled Writes & Previews
kafkactl reset consumer-group-offset orders-service --topic orders --oldest
By default prints the planned offset reset; requires --execute to commit changes.
Strengths for Agents
- + Familiar
kubectl-like UX (get,describe,use-context) reduces agent syntax errors. - +
-o jsonworks consistently across topics, consumer groups, and brokers. - +
reset consumer-group-offsetsafely previews changes unless--executeis passed.
Caveats & Pitfalls
- ! Running
kafkactl consumewithout--max-messagesor--exitstreams forever. - ! Plaintext SASL passwords stored in
~/.config/kafkactl/config.ymlrequire file permissions or env overrides.