rpk topic add-partitions

Add partitions to existing topics.

Usage

rpk topic add-partitions [TOPICS...] --num [#] [flags]

Flags

Value Type Description

-f, --force

-

Force change the partition count in internal topics. For example, the internal topic __consumer_offsets.

-h, --help

-

Help for add-partitions.

-n, --num

int

Number of partitions to add to each topic.

--config

string

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

-X, --config-opt

stringArray

Override rpk configuration settings. See rpk -X or execute rpk -X help for inline detail or rpk -X list for terser detail.

--profile

string

Profile to use. See rpk profile for more details.

-v, --verbose

-

Enable verbose logging.