This tool helps to create, delete, describe, or change a topic. Option Description ------ ----------- --alter Alter the number of partitions and replica assignment. (To alter topic configurations, the kafka-configs tool can be used.) --at-min-isr-partitions If set when describing topics, only show partitions whose isr count is equal to the configured minimum. --bootstrap-server to. --command-config passed to Admin Client. --config A topic configuration override for the topic being created. The following is a list of valid configurations: cleanup.policy compression.gzip.level compression.lz4.level compression.type compression.zstd.level delete.retention.ms errors.deadletterqueue.group.enable file.delete.delay.ms flush.messages flush.ms follower.replication.throttled. replicas index.interval.bytes leader.replication.throttled.replicas local.retention.bytes local.retention.ms max.compaction.lag.ms max.message.bytes message.timestamp.after.max.ms message.timestamp.before.max.ms message.timestamp.type min.cleanable.dirty.ratio min.compaction.lag.ms min.insync.replicas preallocate remote.copy.lag.bytes remote.copy.lag.ms remote.log.copy.disable remote.log.delete.on.disable remote.storage.enable retention.bytes retention.ms segment.bytes segment.index.bytes segment.jitter.ms segment.ms unclean.leader.election.enable See the Kafka documentation for full details on the topic configs. It is supported only in combination with -- create. (To alter topic configurations, the kafka-configs tool can be used.) --create Create a new topic. --delete Delete a topic. --delete-config This option is no longer supported and has been deprecated since 4.0 --describe List details for the given topics. --exclude-internal Exclude internal topics when listing or describing topics. By default, the internal topics are included. --help Print usage information. --if-exists If set when altering or deleting or describing topics, the action will only execute if the topic exists. --if-not-exists If set when creating topics, the create request will not fail if the topic already exists, but the request will still be sent. --list List all available topics. --partition-size-limit-per-response The maximum partition size to be DescribeTopicPartitions response. --partitions The number of partitions for the topic being created or altered. If not supplied with --create, the topic uses the cluster default. (WARNING: If partitions are increased for a topic that has a key, the partition logic or ordering of the messages will be affected). --replica-assignment --replication-factor partition in the topic being created. If not supplied, the topic uses the cluster default. --topic The topic to create, alter, describe or delete. It also accepts a regular expression, except for --create option. --topic-id The topic-id to describe. --topics-with-overrides If set when describing topics, only show topics that have overridden configs. --unavailable-partitions If set when describing topics, only show partitions whose leader is not available. --under-min-isr-partitions If set when describing topics, only show partitions whose isr count is less than the configured minimum. --under-replicated-partitions If set when describing topics, only show under-replicated partitions. --version Display Kafka version.