ccloud kafka topic create

Attention

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.

Description

Create a Kafka topic.

ccloud kafka topic create <topic> [flags]

Flags

--partitions int32     Number of topic partitions. (default 6)
--config strings       A comma-separated list of configuration overrides ('key=value') for the topic being created.
--dry-run              Run the command without committing changes to Kafka.
--if-not-exists        Exit gracefully if topic already exists.
--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).

Examples

Create a topic named my_topic with default options.

ccloud kafka topic create my_topic

See Also