Apache Kafka 4 · Consumer groups
Preview an offset reset
Show what resetting to the earliest offset would do, without changing anything. The group must have no active consumers.
bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --group order-readers --topic orders --reset-offsets --to-earliest --dry-run
Official Apache Kafka 4 documentation