@@ -4,20 +4,31 @@ Create a Kafka topic
44
55=== Synopsis
66
7- Create topic in the current Kafka instance
7+ Create topic in the current Kafka instance.
8+
9+ This command lets you create a topic, set a desired number of
10+ partitions, replicas and retention period or else use the default
11+ values.
812
913....
1014rhoas kafka topic create [flags]
1115....
1216
17+ === Examples
18+
19+ ....
20+ # create a topic
21+ $ rhoas kafka topic create topic-1
22+ ....
23+
1324=== Options
1425
1526....
1627 -h, --help help for create
17- --insecure Enables insecure communication with the server. This disables verification of TLS certificates and host names.
18- -n, --name string Topic name
19- -p, --partitions int32 Set number of partitions (default 1)
20- -r, --replicas int32 Set number of replicas (default 1)
28+ -o, --output string Output format of the results. Choose from ["json" "yml" "yaml"] (default "json")
29+ --partitions int32 The number of partitions in the topic (default 1)
30+ --replicas int32 The replication factor for the topic (default 1)
31+ --retention-ms int The period of time in milliseconds the broker will retain a partition log before deleting it (default - 1)
2132....
2233
2334=== Options inherited from parent commands
@@ -28,5 +39,5 @@ rhoas kafka topic create [flags]
2839
2940=== SEE ALSO
3041
31- * link:rhoas_kafka_topic.adoc[rhoas kafka topic] - Create, list and delete
32- Kafka topics
42+ * link:rhoas_kafka_topic.adoc[rhoas kafka topic] - Create, describe,
43+ update, list and delete Kafka topics
0 commit comments