---
title: rpk cluster quotas alter
latest-redpanda-tag: v25.2.1
latest-console-tag: v3.14.0
latest-operator-version: v25.2.6
# EOL = End-of-Life (support lifecycle status)
page-is-nearing-eol: "false"
page-is-past-eol: "true"
page-eol-date: July 31, 2026
latest-connect-version: 4.118.0
docname: rpk/rpk-cluster/rpk-cluster-quotas-alter
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-quotas-alter.adoc
page-edit-url: https://github.com/redpanda-data/docs/edit/v/25.2/modules/reference/pages/rpk/rpk-cluster/rpk-cluster-quotas-alter.adoc
page-git-created-date: "2024-07-31"
page-git-modified-date: "2025-08-19"
page-generated-content: none
support-status: past end-of-life
---

# rpk cluster quotas alter

> 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/25.2/reference/rpk/rpk-cluster/rpk-cluster-quotas-alter.md -->

Add or delete a client quota.

A client quota consists of an entity (to which the quota is applied) and a quota type (what is being applied).

There are two entity types supported by Redpanda: client ID and client ID prefix. Use the `--default` flag to assign quotas to default entity types.

You can perform a dry run using the `--dry` flag.

## Usage

```bash
rpk cluster quotas alter [flags]
```

## Flags

| **Value** | **Type** | **Description** |
| --- | --- | --- |
| `--add` | strings | Key=value quota to add, where the value is a float number (repeatable). |
| `--default` | strings | Entity type for default matching, where type is client-id or client-id-prefix (repeatable). |
| `--delete` | strings | Key of the quota to delete (repeatable). |
| `--dry` | - | Perform a dry run. Show what would be done, but do not execute the command. |
| `--format` | string | Output format. Possible values: `json`, `yaml`, `text`, `wide`, `help`. Default: `text`. |
| `-h, --help` | - | Help for alter. |
| `--name` | strings | Entity for exact matching. Format `type=name` where `type` is the `client-id` or `client-id-prefix` (repeatable). |
| `--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`](https://docs.redpanda.com/streaming/25.2/reference/rpk/rpk-x-options/) or execute `rpk -X help` for inline detail or `rpk -X list` for terser detail. |
| `--profile` | string | Profile to use. See [`rpk profile`](https://docs.redpanda.com/streaming/25.2/reference/rpk/rpk-profile/rpk-profile/) for more details. |
| `-v, --verbose` | - | Enable verbose logging. |

## Examples

Add quota (consumer_byte_rate) to client ID `<foo>`:

```bash
rpk cluster quotas alter --add consumer_byte_rate=200000 --name client-id=<foo>
```

Add quota (consumer_byte_rate) to client ID starting with `<bar>-`:

```bash
rpk cluster quotas alter --add consumer_byte_rate=200000 --name client-id-prefix=<bar>-
```

Add quota (producer_byte_rate) to default client ID:

```bash
rpk cluster quotas alter --add producer_byte_rate=180000 --default client-id
```

Remove quota (producer_byte_rate) from client ID `foo`:

```bash
rpk cluster quotas alter --delete producer_byte_rate --name client-id=<foo>
```