Important
You are viewing documentation for an older version of Confluent Platform. For the latest, click here.
ccloud produce¶
Description¶
Produce to a topic.
Usage¶
ccloud [(--config-dir <configDir> | -c <configDir>)] [(--verbose | -v)]
produce (-t <topic> | --topic <topic>)
Tip
For usage information, enter ccloud help produce
.
Options¶
Name, shorthand | Default | Description |
---|---|---|
--config-dir <configDir> , -c <configDir> |
$HOME/.ccloud |
The configuration directory. |
-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. | |
<topic> |
The topic name. |
Example¶
Produce records to the my_topic
topic.
ccloud produce --topic my_topic
You can type messages in as standard input. By default they are newline
separated. Press Ctrl + C
to exit.
foo
bar
baz
^C