Cloud

rpk group list

List all groups.

This command lists all groups currently known to Redpanda, including empty groups that have not yet expired. The BROKER column is which broker node is the coordinator for the group. This command can be used to track down unknown groups, or to list groups that need to be cleaned up.

The TYPE column shows which rebalance protocol the group uses:

  • classic: The clients compute the partition assignment.

  • consumer: The broker computes the partition assignment.

A broker that does not support ListGroups v5 reports no group type. Such a broker cannot host groups that use the consumer protocol, so rpk lists its groups as classic.

The STATE column shows which state the group is in.

A group of type classic can be:

  • PreparingRebalance: The group is preparing to rebalance.

  • CompletingRebalance: The group is waiting on the leader to provide assignments.

  • Stable: The group is not empty and has no group membership changes in process.

  • Dead: Transient state as the group is being removed.

  • Empty: The group currently has no members.

A group of type consumer can be:

  • Empty: The group currently has no members.

  • Assigning: The broker is computing a new assignment for the group.

  • Reconciling: Some members do not have their new assignment yet.

  • Stable: Every member has its target assignment.

  • Dead: Transient state as the group is being removed.

Usage

rpk group list [flags]

Aliases

rpk group ls

Examples

This section provides examples of how to use rpk group list.

List all groups:

rpk group list

List only the consumer groups:

rpk group list --types consumer

List the classic groups that are stable or empty:

rpk group list --types classic --states Stable,Empty

Flags

Value Type Description

--format

string

Output format (json,yaml,text,wide,help). Default: text. (New in v26.2.1)

-s, --states

stringSlice

Comma-separated list of group states to filter for. Possible states: [PreparingRebalance, CompletingRebalance, Assigning, Reconciling, Stable, Dead, Empty].

-t, --types

stringSlice

Comma-separated list of group types to filter for. Possible types: [classic, consumer]. (New in v26.3.1)

Global flags

Value Type Description

--config

string

Redpanda or rpk config file; default search paths are ~/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml.

-X, --config-opt

stringArray

Override rpk configuration settings; -X help for detail or -X list for terser detail.

--ignore-profile

bool

Ignore rpk.yaml and redpanda.yaml; use default settings.

--profile

string

rpk profile to use.

-v, --verbose

bool

Enable verbose logging.