View the latest documentation 5.3
Commands for updating consumer groups offsets.
Flags --group and --topic are mandatory and specify the consumer group ID and topic name respectively.
--group
--topic
To affect all topics use the —all-topics flag.
-g, --group
-t, --topic
--all-topics
--topics
--partition
--to-earliest
--to-latest
--to-offset
lenses-cli consumers \ offsets \ update-single-partition \ --group <group_name> \ --topic <topic_name> \ --partition <partition_id> \ --to-offset <offset_id>
lenses-cli consumers \ offsets \ update-single-partition \ --group <group_name> \ --topic <topic_name> \ --partition <partition_id> \ --to-earliest
lenses-cli consumers \ offsets \ update-single-partition \ --group <group_name> \ --topic <topic_name> \ --partition <partition_id> \ --to-latest
lenses-cli consumers \ offsets \ update-multiple-partitions \ --group <group_name> \ --topic <topic_name> \ --to-datetime <datetime>
lenses-cli consumers \ offsets \ update-multiple-partitions \ --group <group_name> \ --topic <topic_name> \ --to-earliest
lenses-cli consumers \ offsets \ update-multiple-partitions \ --group <group_name> \ --topic <topic_name> \ --to-latest
lenses-cli consumers \ offsets \ update-multiple-partitions \ --group <group_name> \ --all-topics \ --to-latest
On this page