---
title: rpk cluster partitions enable
latest-redpanda-tag: v26.1.14
latest-console-tag: v3.14.0
latest-operator-version: v26.1.14
# EOL = End-of-Life (support lifecycle status)
page-is-nearing-eol: "false"
page-is-past-eol: "false"
page-eol-date: March 31, 2027
latest-connect-version: 4.118.0
docname: rpk/rpk-cluster/rpk-cluster-partitions-enable
page-component-name: streaming
page-version: "26.1"
page-component-version: "26.1"
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/26.1/modules/reference/pages/rpk/rpk-cluster/rpk-cluster-partitions-enable.adoc
description: Enable partitions of a topic You may enable all partitions of a topic using the <code>--all</code> flag or you may select a set of topic/partitions to enable with the <code>--partitions</code>/<code>-p</code> flag. The partition flag accepts the format <code>\{namespace}/\{topic}/[partitions...]</code> where namespace and topic are optional parameters.
page-git-created-date: "2023-12-22"
page-git-modified-date: "2026-07-17"
page-autogenerated: true
page-generated-content: all
support-status: supported
---

# 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)

<!-- Source: https://docs.redpanda.com/streaming/26.1/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`/`-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.

## Usage

```bash
rpk cluster partitions enable <topic> [flags]
```

## Examples

This section provides examples of how to use `rpk cluster partitions enable`.

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
```

## Flags

| Value | Type | Description |
| --- | --- | --- |
| `-a, --all` | bool | If true, enable all partitions for the specified topic. |
| `-p, --partitions` | stringArray | Comma-separated list of partitions you want to enable. Check help for extended usage. |

## 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. |