ccloud kafka topic consume


The Confluent Cloud CLI is deprecated and will stop working on May 9, 2022. All ccloud features have been moved to the Confluent CLI. To update to the new CLI, run ccloud update –major. See the Migrate to Confluent CLI v2 for more details.


Consume messages from a Kafka topic.

ccloud kafka topic consume <topic> [flags]


    --group string          Consumer group ID. (default "confluent_cli_consumer_<uuid>")
-b, --from-beginning        Consume from beginning of the topic.
    --value-format string   Format of message value as string, avro, protobuf, or jsonschema. (default "string")
    --print-key             Print key of the message.
    --delimiter string      The key/value delimiter. (default "\t")
    --sr-endpoint string    Endpoint for Schema Registry cluster.
    --sr-apikey string      Schema registry API key.
    --sr-apisecret string   Schema registry API key secret.
    --environment string    Environment ID.
    --cluster string        Kafka cluster ID.
    --context string        CLI context name.
    --api-key string        API key.
    --api-secret string     API key secret.

Global Flags

-h, --help            Show help for this command.
-v, --verbose count   Increase verbosity (-v for warn, -vv for info, -vvv for debug, -vvvv for trace).


Consume items from the my_topic topic and press Ctrl+C to exit.

ccloud kafka topic consume -b my_topic

See Also