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

---
title: rpk cluster quotas alter
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: July 31, 2025
latest-console-tag: v3.7.3
latest-connect-version: 4.93.0
docname: rpk/rpk-cluster/rpk-cluster-quotas-alter
page-component-name: streaming
page-version: "24.2"
page-component-version: "24.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/24.2/modules/reference/pages/rpk/rpk-cluster/rpk-cluster-quotas-alter.adoc
description: rpk cluster quotas alter
page-git-created-date: "2024-07-31"
page-git-modified-date: "2024-08-01"
support-status: past end-of-life
---

<!-- Source: https://docs.redpanda.com/streaming/24.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)Usage

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

## [](#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 | - | Key of the quota to delete (repeatable). |
| --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 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. |

## [](#examples)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>
```