# rpk cluster partitions move

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [streaming-full.txt](https://docs.redpanda.com/streaming-full.txt)

---
title: rpk cluster partitions move
latest-redpanda-tag: v25.1.1
latest-console-tag: v3.7.3
latest-operator-version: v26.1.4
# EOL = End-of-Life (support lifecycle status)
page-is-nearing-eol: "false"
page-is-past-eol: "true"
page-eol-date: April 7, 2026
latest-connect-version: 4.93.0
docname: rpk/rpk-cluster/rpk-cluster-partitions-move
page-component-name: streaming
page-version: "25.1"
page-component-version: "25.1"
page-component-title: Streaming
page-relative-src-path: rpk/rpk-cluster/rpk-cluster-partitions-move.adoc
page-edit-url: https://github.com/redpanda-data/docs/edit/v/25.1/modules/reference/pages/rpk/rpk-cluster/rpk-cluster-partitions-move.adoc
page-git-created-date: "2023-12-22"
page-git-modified-date: "2024-12-09"
support-status: past end-of-life
---

<!-- Source: https://docs.redpanda.com/streaming/25.1/reference/rpk/rpk-cluster/rpk-cluster-partitions-move.md -->

Move partition replicas across brokers/cores.

This command changes replica assignments for given partitions. By default, it assumes the `kafka` namespace, but you can specify an internal namespace using the `<namespace>/` prefix.

## [](#examples)Examples

To move replicas, use the following syntax:

```bash
rpk cluster partitions move foo --partition 0:1,2,3 -p 1:2,3,4
```

Here, the command assigns new replicas for partition 0 to brokers \[1, 2, 3\] and for partition 1 to brokers \[2, 3, 4\] for the topic `foo`.

You can also specify the core id with `--<core_id>` where the new replicas should be placed:

```bash
rpk cluster partitions move foo -p 0:1-0,2-0,3-0
```

Here all new replicas \[1, 2, 3\] will be assigned on core 0 on the brokers. The command does not change a core assignment unless it is explicitly specified. When a core is not specified for a new broker, the command randomly picks a core and assigns a replica to the core.

Topic arguments are optional. For more control, you can specify the topic name in the `--partition` flag:

```bash
rpk cluster partitions move -p foo/0:1,2,3 -p kafka_internal/tx/0:1-0,2-0,3-0
```

## [](#usage)Usage

```bash
rpk cluster partitions move [flags]
```

## [](#flags)Flags

| Value | Type | Description |
| --- | --- | --- |
| --format | string | Output format. Possible values: json, yaml, text, wide, help. Default: text. |
| -h, --help | - | Help for move. |
| -p, --partition | stringArray | Topic partitions to move and new replica locations (repeatable). |
| --config | string | Redpanda or rpk config file; default search paths are /var/lib/redpanda/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, 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. |