list kafka topics code example Example: kafka list topics bin/kafka-topics.sh --list --zookeeper localhost:2181