# rpk cluster partitions enable

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

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

Enable partitions of a topic.

You may enable all partitions of a topic using the `--all` flag or you may select a set of topic/partitions to enable with the `--partitions` or `-p` flag.

The partition flag accepts the format `<namespace>/<topic>/[partitions…​]` where namespace and topic are optional parameters.

If the namespace is not provided, `rpk` will assume `kafka`.

If the topic is not provided in the flag, `rpk` will use the topic provided as an argument to this command.

## [](#examples)Examples

Enable all partitions in topic `foo`:

```bash
rpk cluster partitions enable foo --all
```

Enable partitions 1,2 and 3 of topic `bar` in the namespace `internal`:

```bash
rpk cluster partitions enable internal/bar --partitions 1,2,3
```

Enable partition 1, and 2 of topic `foo`, and partition 5 of topic `bar` in the `internal` namespace:

```bash
rpk cluster partitions enable -p foo/1,2 -p internal/bar/5
```

## [](#usage)Usage

```bash
rpk cluster partitions enable [TOPIC] [flags]
```

## [](#flags)Flags

| Value | Type | Description |
| --- | --- | --- |
| -a, --all | - | If true, enable all partitions for the specified topic. |
| -h, --help | - | Help for enable. |
| -p, --partitions | stringArray | Comma-separated list of partitions you want to enable. Check help for extended usage. |
| --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. |