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

    --schema string                       The path to the schema file.
    --schema-id int32                     The ID of the schema.
    --value-format string                 Format of message value as "string", "avro", "jsonschema", or "protobuf". Note that schema references are not supported for avro. (default "string")
    --references string                   The path to the 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 (in json or avro format) for the producer client.
    --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 key secret.
    --api-key string                      API key.
    --api-secret string                   API key secret.
    --cluster string                      Kafka cluster ID.
    --context string                      CLI context name.
    --environment string                  Environment ID.
-o, --output string                       Specify the output format as "human", "json", or "yaml". (default "human")

Global Flags

-h, --help            Show help for this command.
    --unsafe-trace    Equivalent to -vvvv, but also log HTTP requests and responses which may 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