Important
You are viewing documentation for an older version of Confluent Platform. For the latest, click here.
ccloud consume¶
Description¶
Consume from a topic.
Usage¶
ccloud [(--config-dir <configDir> | -c <configDir>)] [(--verbose | -v)]
consume [(-b | --from-beginning)] [(-o <offset> | --offset <offset>)]
[(-p <consoleProps> | --property <consoleProps>)...]
(-t <topic> | --topic <topic>)
Tip
For usage information, enter ccloud help consume
.
Options¶
Name, shorthand | Default | Description |
---|---|---|
-b , --from-beginning |
Start reading from the beginning. | |
--config-dir <configDir> , -c <configDir> |
$HOME/.ccloud |
The configuration directory. |
-o <offset> , --offset <offset> |
The offset. | |
-p <consoleProps> , --property <consoleProps> |
The console configuration properties. | |
-t <topic> , --topic <topic> |
The topic to consume from. | |
--verbose , -v |
Detailed output of a command. |
Positional arguments¶
Name, shorthand | Default | Description |
---|---|---|
<configDir> |
The path to the configuration directory. | |
<consoleProps> |
The console consumer configuration property. | |
<offset> |
The offset name. | |
<topic> |
The topic name. |
Example¶
Consume items from the my_topic
topic and press Ctrl + C
to exit.
ccloud consume -b -t my_topic