confluent kafka topic produce

Description

Produce messages to a Kafka topic.

When using this command, you cannot modify the message header, and the message header will not be printed out.

confluent kafka topic produce <topic> [flags]

Flags

--key-schema string                   The ID or filepath of the message key schema.
--schema string                       The ID or filepath of the message value schema.
--key-format string                   Format of message key as "string", "avro", "integer", "jsonschema", or "protobuf". Note that schema references are not supported for Avro. (default "string")
--value-format string                 Format message value as "string", "avro", "integer", "jsonschema", or "protobuf". Note that schema references are not supported for Avro. (default "string")
--key-references string               The path to the message key schema references file.
--references string                   The path to the message value schema references file.
--parse-key                           Parse key from the message.
--delimiter string                    The delimiter separating each key and value. (default ":")
--config strings                      A comma-separated list of configuration overrides ("key=value") for the producer client.
--config-file string                  The path to the configuration file for the producer client, in JSON or Avro format.
--schema-registry-endpoint string     Endpoint for Schema Registry cluster.
--schema-registry-api-key string      Schema registry API key.
--schema-registry-api-secret string   Schema registry API secret.
--api-key string                      API key.
--api-secret string                   API secret.
--cluster string                      Kafka cluster ID.
--context string                      CLI context name.
--environment string                  Environment ID.

Global Flags

-h, --help            Show help for this command.
    --unsafe-trace    Equivalent to -vvvv, but also log HTTP requests and responses which might contain plaintext secrets.
-v, --verbose count   Increase verbosity (-v for warn, -vv for info, -vvv for debug, -vvvv for trace).

Examples

No examples.

See Also