Kafka CLI Tools
It is a collection of tools to interact with kafka cluster through the terminal.
- kafkacat
- confluent community tools
- project location: kafka-cli
⚠️ Run these commands inside the root folder.
Create an alias for kafka-cli
:
alias kafka-cli='docker run --rm -it --network kafka-sandbox_network kafka-cli:latest '
To permanently add the alias to your shell (~/.bashrc
or ~/.zshrc
file):
echo "alias kafka-cli='docker run --rm -it --network kafka-sandbox_network kafka-cli:latest '" >> ~/.zshrc
Create the docker image:
cd kafka-cli
docker build -t kafka-cli:latest .
kafka-cli