Command reference
Generated from the CLI’s own command registry by scripts/generate-cli-docs.mjs — do not
edit by hand; run that script again after changing a command.
General
completion— Print a shell completion script for bash, zsh, or fishdoctor— Report where connection settings come from — config file, environment, profile, or flaginit— Scaffold a kafka.config file in the current directoryping— Check connectivity to the clusterprofiles— List the named connection profiles configured under cli.profilesstudio— Launch the local web UI for browsing and driving the cluster
acl
acl add— Create one or more ACLs, granting or denying an operationacl list— List ACLs matching a filter, or every ACL by defaultacl remove— Delete every ACL matching a filter, per principal
admin
admin call— Call any Admin method by name — the escape hatch for everything without its own commandadmin methods— List every Admin method admin call can reach, and how each is classified
cluster
cluster elect-leaders— Trigger a preferred or unclean leader election on one or more partitionscluster features— Describe supported and finalized feature versionscluster info— Describe the cluster: its brokers, controller, and cluster idcluster log-dirs— Describe log directories and their partition sizes, per brokercluster quorum— Describe the metadata quorum: leader, voters, and observerscluster raft-voter add— Add a voter to the KRaft metadata quorumcluster raft-voter remove— Remove a voter from the KRaft metadata quorumcluster reassign execute— Execute a partition reassignment from a kafka-reassign-partitions.sh-shaped JSON filecluster reassign list— List every active partition reassignmentcluster unregister-broker— Unregister a broker from the cluster (KRaft broker decommissioning)cluster update-features— Upgrade, safe-downgrade, or unsafe-downgrade one or more finalized feature versions
config
config describe— Describe the configs of one or more resourcesconfig list-resources— List every config resource the broker knows aboutconfig set— Set one or more config entries on a resourceconfig unset— Remove one or more config entries from a resource, reverting them to default
group
group delete— Delete one or more consumer groupsgroup delete-offsets— Delete a consumer group’s committed offsets on one or more topicsgroup describe— Describe one or more consumer groupsgroup list— List every consumer group the cluster knows aboutgroup offsets— Show a consumer group’s committed offsetsgroup remove-members— Remove one or more static members from a consumer group’s sessiongroup reset-offsets— Reset a consumer group’s committed offsets on one or more topics
quota
quota alter— Set or remove client quota values for one entityquota describe— Describe client quotas matching an entity filter
scram
scram delete— Delete a SCRAM credential for one or more usersscram list— List SCRAM credentials for one or more users, or every userscram set— Create or update a SCRAM credential for one or more users
share-group
share-group delete— Delete one or more share groupsshare-group describe— Describe one or more share groupsshare-group list— List every share group the cluster knows aboutshare-group offsets— Read, set, or delete a share group’s committed start offsets
token
token create— Create a delegation tokentoken expire— Expire a delegation token, immediately by defaulttoken list— List delegation tokens, optionally filtered by ownertoken renew— Renew a delegation token, extending its expiry
topic
topic add-partitions— Raise a topic to a new total partition counttopic create— Create one or more topicstopic delete— Delete one or more topicstopic delete-records— Delete records before a given offset, per partitiontopic describe— Describe one or more topicstopic list— List every topictopic offsets— Show partition offsets for a topictopic producers— Show a topic’s active producer state, per partition
txn
txn abort— Write an abort marker for one in-flight transaction on a topic partitiontxn describe— Describe one or more transactional idstxn fence— Fence out a transactional id’s current producer, bumping its epochtxn list— List transactions known to the cluster, optionally filteredtxn terminate— Force-terminate a transactional id’s current transaction