List Kafka topics— To list all Kafka topics in the Kaka server, We will use the –list command.
For mac and Linux, use kafak-topic.sh command, for windows, you can use the kafka-topic.bat command. The — bootstrap-server represents the Kafka broker we’re trying to connect to. My Kafka broker is launched locally, therefore, I use localhost:9092.