# Command reference

Every kafka command, one page each, generated from the command registry

Package: @cookiemonsterdev/kafka-cli 1.12.1
Canonical: https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/
Source revision: b112a684d2b3cdc7deadb3513041fcdbdc1c18b5

<!-- Generated by scripts/generate-cli-docs.mjs. Do not edit by hand. -->

## General

- [`completion`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/completion/) <span>Print a shell completion script for bash, zsh, or fish</span>
- [`doctor`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/doctor/) <span>Report where connection settings come from — config file, environment, profile, or flag</span>
- [`init`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/init/) <span>Scaffold a kafka.config file in the current directory</span>
- [`ping`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/ping/) <span>Check connectivity to the cluster</span>
- [`profiles`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/profiles/) <span>List the named connection profiles configured under cli.profiles</span>
- [`studio`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/studio/) <span>Launch the local web UI for browsing and driving the cluster</span>

## acl

- [`acl add`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/acl/add/) <span>Create one or more ACLs, granting or denying an operation</span>
- [`acl list`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/acl/list/) <span>List ACLs matching a filter, or every ACL by default</span>
- [`acl remove`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/acl/remove/) <span>Delete every ACL matching a filter, per principal</span>

## admin

- [`admin call`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/admin/call/) <span>Call any Admin method by name — the escape hatch for everything without its own command</span>
- [`admin methods`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/admin/methods/) <span>List every Admin method admin call can reach, and how each is classified</span>

## cluster

- [`cluster elect-leaders`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/cluster/elect-leaders/) <span>Trigger a preferred or unclean leader election on one or more partitions</span>
- [`cluster features`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/cluster/features/) <span>Describe supported and finalized feature versions</span>
- [`cluster info`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/cluster/info/) <span>Describe the cluster: its brokers, controller, and cluster id</span>
- [`cluster log-dirs`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/cluster/log-dirs/) <span>Describe log directories and their partition sizes, per broker</span>
- [`cluster quorum`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/cluster/quorum/) <span>Describe the metadata quorum: leader, voters, and observers</span>
- [`cluster raft-voter add`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/cluster/raft-voter-add/) <span>Add a voter to the KRaft metadata quorum</span>
- [`cluster raft-voter remove`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/cluster/raft-voter-remove/) <span>Remove a voter from the KRaft metadata quorum</span>
- [`cluster reassign execute`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/cluster/reassign-execute/) <span>Execute a partition reassignment from a kafka-reassign-partitions.sh-shaped JSON file</span>
- [`cluster reassign list`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/cluster/reassign-list/) <span>List every active partition reassignment</span>
- [`cluster unregister-broker`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/cluster/unregister-broker/) <span>Unregister a broker from the cluster (KRaft broker decommissioning)</span>
- [`cluster update-features`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/cluster/update-features/) <span>Upgrade, safe-downgrade, or unsafe-downgrade one or more finalized feature versions</span>

## config

- [`config describe`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/config/describe/) <span>Describe the configs of one or more resources</span>
- [`config list-resources`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/config/list-resources/) <span>List every config resource the broker knows about</span>
- [`config set`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/config/set/) <span>Set one or more config entries on a resource</span>
- [`config unset`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/config/unset/) <span>Remove one or more config entries from a resource, reverting them to default</span>

## group

- [`group delete`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/group/delete/) <span>Delete one or more consumer groups</span>
- [`group delete-offsets`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/group/delete-offsets/) <span>Delete a consumer group's committed offsets on one or more topics</span>
- [`group describe`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/group/describe/) <span>Describe one or more consumer groups</span>
- [`group list`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/group/list/) <span>List every consumer group the cluster knows about</span>
- [`group offsets`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/group/offsets/) <span>Show a consumer group's committed offsets</span>
- [`group remove-members`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/group/remove-members/) <span>Remove one or more static members from a consumer group's session</span>
- [`group reset-offsets`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/group/reset-offsets/) <span>Reset a consumer group's committed offsets on one or more topics</span>

## quota

- [`quota alter`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/quota/alter/) <span>Set or remove client quota values for one entity</span>
- [`quota describe`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/quota/describe/) <span>Describe client quotas matching an entity filter</span>

## scram

- [`scram delete`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/scram/delete/) <span>Delete a SCRAM credential for one or more users</span>
- [`scram list`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/scram/list/) <span>List SCRAM credentials for one or more users, or every user</span>
- [`scram set`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/scram/set/) <span>Create or update a SCRAM credential for one or more users</span>

## share-group

- [`share-group delete`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/share-group/delete/) <span>Delete one or more share groups</span>
- [`share-group describe`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/share-group/describe/) <span>Describe one or more share groups</span>
- [`share-group list`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/share-group/list/) <span>List every share group the cluster knows about</span>
- [`share-group offsets`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/share-group/offsets/) <span>Read, set, or delete a share group’s committed start offsets</span>

## token

- [`token create`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/token/create/) <span>Create a delegation token</span>
- [`token expire`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/token/expire/) <span>Expire a delegation token, immediately by default</span>
- [`token list`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/token/list/) <span>List delegation tokens, optionally filtered by owner</span>
- [`token renew`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/token/renew/) <span>Renew a delegation token, extending its expiry</span>

## topic

- [`topic add-partitions`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/topic/add-partitions/) <span>Raise a topic to a new total partition count</span>
- [`topic create`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/topic/create/) <span>Create one or more topics</span>
- [`topic delete`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/topic/delete/) <span>Delete one or more topics</span>
- [`topic delete-records`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/topic/delete-records/) <span>Delete records before a given offset, per partition</span>
- [`topic describe`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/topic/describe/) <span>Describe one or more topics</span>
- [`topic list`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/topic/list/) <span>List every topic</span>
- [`topic offsets`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/topic/offsets/) <span>Show partition offsets for a topic</span>
- [`topic producers`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/topic/producers/) <span>Show a topic's active producer state, per partition</span>

## txn

- [`txn abort`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/txn/abort/) <span>Write an abort marker for one in-flight transaction on a topic partition</span>
- [`txn describe`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/txn/describe/) <span>Describe one or more transactional ids</span>
- [`txn fence`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/txn/fence/) <span>Fence out a transactional id's current producer, bumping its epoch</span>
- [`txn list`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/txn/list/) <span>List transactions known to the cluster, optionally filtered</span>
- [`txn terminate`](https://cookiemonsterdev.github.io/kafka/docs/cli/reference/commands/txn/terminate/) <span>Force-terminate a transactional id's current transaction</span>
