diff --git a/internal/kafka/command_topic_produce.go b/internal/kafka/command_topic_produce.go index 4a7b9a5812..a4055df60d 100644 --- a/internal/kafka/command_topic_produce.go +++ b/internal/kafka/command_topic_produce.go @@ -44,7 +44,7 @@ func (c *command) newProduceCommand() *cobra.Command { Example: examples.BuildExampleString( examples.Example{ Text: `Produce to topic "my_topic" in Confluent Cloud with a Confluent Cloud API key.`, - Code: "confluent kafka topic consume my_topic --api-key 0000000000000000 --api-secret --bootstrap SASL_SSL://pkc-12345.us-west-2.aws.confluent.cloud:9092 --value-format avro --schema test.avsc --schema-registry-endpoint https://psrc-12345.us-west-2.aws.confluent.cloud --schema-registry-api-key 0000000000000000 --schema-registry-api-secret ", + Code: "confluent kafka topic produce my_topic --api-key 0000000000000000 --api-secret --bootstrap SASL_SSL://pkc-12345.us-west-2.aws.confluent.cloud:9092 --value-format avro --schema test.avsc --schema-registry-endpoint https://psrc-12345.us-west-2.aws.confluent.cloud --schema-registry-api-key 0000000000000000 --schema-registry-api-secret ", }, ), } diff --git a/test/fixtures/output/kafka/topic/produce-help-onprem.golden b/test/fixtures/output/kafka/topic/produce-help-onprem.golden index ee4b606185..fdb9ae8079 100644 --- a/test/fixtures/output/kafka/topic/produce-help-onprem.golden +++ b/test/fixtures/output/kafka/topic/produce-help-onprem.golden @@ -8,7 +8,7 @@ Usage: Examples: Produce to topic "my_topic" in Confluent Cloud with a Confluent Cloud API key. - $ confluent kafka topic consume my_topic --api-key 0000000000000000 --api-secret --bootstrap SASL_SSL://pkc-12345.us-west-2.aws.confluent.cloud:9092 --value-format avro --schema test.avsc --schema-registry-endpoint https://psrc-12345.us-west-2.aws.confluent.cloud --schema-registry-api-key 0000000000000000 --schema-registry-api-secret + $ confluent kafka topic produce my_topic --api-key 0000000000000000 --api-secret --bootstrap SASL_SSL://pkc-12345.us-west-2.aws.confluent.cloud:9092 --value-format avro --schema test.avsc --schema-registry-endpoint https://psrc-12345.us-west-2.aws.confluent.cloud --schema-registry-api-key 0000000000000000 --schema-registry-api-secret Flags: --bootstrap string Kafka cluster endpoint (Confluent Cloud); or comma-separated list of broker hosts (Confluent Platform), each formatted as "host" or "host:port". diff --git a/test/fixtures/output/kafka/topic/produce-help.golden b/test/fixtures/output/kafka/topic/produce-help.golden index ee4b606185..fdb9ae8079 100644 --- a/test/fixtures/output/kafka/topic/produce-help.golden +++ b/test/fixtures/output/kafka/topic/produce-help.golden @@ -8,7 +8,7 @@ Usage: Examples: Produce to topic "my_topic" in Confluent Cloud with a Confluent Cloud API key. - $ confluent kafka topic consume my_topic --api-key 0000000000000000 --api-secret --bootstrap SASL_SSL://pkc-12345.us-west-2.aws.confluent.cloud:9092 --value-format avro --schema test.avsc --schema-registry-endpoint https://psrc-12345.us-west-2.aws.confluent.cloud --schema-registry-api-key 0000000000000000 --schema-registry-api-secret + $ confluent kafka topic produce my_topic --api-key 0000000000000000 --api-secret --bootstrap SASL_SSL://pkc-12345.us-west-2.aws.confluent.cloud:9092 --value-format avro --schema test.avsc --schema-registry-endpoint https://psrc-12345.us-west-2.aws.confluent.cloud --schema-registry-api-key 0000000000000000 --schema-registry-api-secret Flags: --bootstrap string Kafka cluster endpoint (Confluent Cloud); or comma-separated list of broker hosts (Confluent Platform), each formatted as "host" or "host:port".