kcat

CLI tool for producing and consuming Apache Kafka messages

brewmacoslinux
Try with needOr install directly
Source

About

Generic command-line non-JVM Apache Kafka producer and consumer

Commands

kcat

Examples

Consume messages from a Kafka topic$ kcat -b localhost:9092 -t my-topic -C
Produce a message to a Kafka topic$ echo 'Hello Kafka' | kcat -b localhost:9092 -t my-topic -P
List all topics on a Kafka broker$ kcat -b localhost:9092 -L