--- title: "Run the CLI Kafka Tools" slug: "run-the-cli-kafka-tools" updated: 2024-03-19T11:25:29Z published: 2024-03-19T11:25:29Z canonical: "docs.mapp.com/run-the-cli-kafka-tools" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.mapp.com/llms.txt > Use this file to discover all available pages before exploring further. # Run the CLI Kafka Tools 1. Use the CLI Kafka Tools included on your Kafka binary distribution to start the console consumer. This will print the data coming from the topic on your console. Start it using the following command: ```plaintext bin/kafka-console-consumer.sh --bootstrap-server="host:port" --topic mytopic --group groupId --consumer-property security.protocol=SASL_SSL --consumer-property sasl.mechanism=SCRAM-SHA-256 --consumer-property auto.offset.reset=earliest #--consumer-property auto.offset.reset=latest ``` 2. Before running the command, take the following settings: - Substitute , , and . Mapp provides you with the connection endpoint, topic name, consumer group, and credentials. - Specify the value for `auto.offset.reset` (see section [Configuration Properties for the Kafka Clients](/v1/docs/configuration-properties-for-the-kafka-clients)). 3. Alternatively, you can set the configuration properties in the "consumer.properties" file as follows: ```plaintext #auto.offset.reset=earliest #auto.offset.reset=latest group.id=groupId security.protocol=SASL_SSL sasl.mechanism=SCRAM-SHA-256 ``` 4. Now use the `--consumer.config` parameter on the console consumer execution. ```plaintext bin/kafka-console-consumer.sh --bootstrap-server="host:port" --topic mytopic --consumer.config consumer.properties ``` 5. Before running the command, substitute and *.*