ccloud kafka topic update


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.


Update a Kafka topic.

ccloud kafka topic update <topic> [flags]


--config strings       A comma-separated list of topics. Configuration ('key=value') overrides for the topic being created.
--dry-run              Execute request without committing changes to Kafka.
--environment string   Environment ID.
--cluster string       Kafka cluster ID.
--context string       CLI context name.

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).


Modify the my_topic topic to have a retention period of 3 days (259200000 milliseconds).

ccloud kafka topic update my_topic --config=""

See Also