> For the complete documentation index, see [llms.txt](https://tricks.bodik.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tricks.bodik.tech/tools/kafka/how-to-view-all-of-the-offsets-for-some-consumer-groups-in-kafka-using-cli.md).

# How to view all of the offsets for some consumer groups in Kafka using CLI?

An example of the command to pull all of the offsets for some consumer group in Kafka.

I usually use docker image called 'wurstmeister/kafka' pulled from DockerHub to not install and build Kafka on my environment.&#x20;

```bash
docker run wurstmeister/kafka /opt/kafka/bin/kafka-consumer-groups.sh  --bootstrap-server b-1.localhost:9092,b-2.localhost:9092 --group some_group_prod --offsets --describe
```
