---
name: EventStreams-eventstreams-cli
title: Event Streams CLI reference
description: If you want information about how to install the CLI for Event Streams, see Getting started with the Event Streams CLI.
last-updated: 2026-05-01
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/EventStreams?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

# Event Streams CLI reference
{: #cli_reference}

If you want information about how to install the CLI for Event Streams, see [Getting started with the Event Streams CLI](https://cloud.ibm.com/docs/EventStreams?topic=EventStreams-cli&format=markdown#cli).
{: shortdesc}

## Changelog
{: #es_cli_changelog}

| Version | Release date  | Changes  |
|---|---|---|
| v1.0 |  12 May 2019 |  - Initial release of the Event Streams CLI.  |
| v1.0.1  | 27 May 2019 |  - Improved error message when you run the command without init.  \n - Sorted instances list during init.  \n -  Translation update. |
|  v2.0  | 21 August 2019  |  - init: Removed the service-key requirement.  \n - Added group-delete command. Updated translations of help text. |
| v2.1 | 24 June 2020  |  - init: Displayed provision parameters for Enterprise instance. \n - Translation update. |
|  v2.1.1| 10 July 2020  |  - Replaced `whitelist` with ´allowlist`.  \n - Fixed color configuration.  \n - Translation update.  |
| v2.2.0  | 3 August 2020  |  - Added support for the Mirroring feature.  |
| v2.2.1 | 7 August 2020 |  - init: Refined the display of IP allowlist.   |
| v2.3 |  9 November 2020 |  - Added support for configuring message audit on topic. \n - init: Display encryption key if parameter kms_key_crn is specified in provisioning.  |
| v2.3.2 |  5 May 2022 |  - Added support for Mac OS X M1/ARM. \n - init: Display Object Storage bucket if parameter `cos_bucket_crn` is specified in provisioning. |
| v2.4.0 |  28 Feb 2023 |  - Added Kafka version to `ibmcloud es cluster`. \n - Updated Go to 1.9.6. |
| v2.4.1 |  05 Dec 2023 |  - Added `mirroring-active-topics` and `help` commands. |
| v2.5.0 |  15 Dec 2023 |  - Added `schema-import` commands. |
| v2.6.0 |  29 Aug 2024 |  - Added `schemas`, `schema-create`, `schema`, `schema-update`, `schema-delete`, `schema-versions`, `schema-version-create`, `schema-version`, `schema-version-update`, `schema-version-delete`, `schema-compatibility-rule-create`, `schema-compatibility-rule`, `schema-compatibility-rule-update`, and `schema-compatibility-rule-delete` commands. |
| v2.6.1 |  01 Nov 2024 |  - Vulnerability fixes. |
| v2.6.2 |  01 Feb 2025 |  - Vulnerability fixes. |
| v2.7.0 |  25 Feb 2025 |  - Error messages returned from the kafka server are translated.\n - Fix `broker-config` printing settings twice. |
| v2.7.1 |  01 May 2025 |  - Vulnerability fixes. |
| v2.7.3 |  29 Apr 2026 |  - Vulnerability fixes.\n - Minor change to invalid parameter handling. If the optional parameter is not specified, invalid parameters might be ignored instead of an error being returned. |
{: caption="Changelog for the Event Streams CLI plug-in" caption-side="bottom"}

## ibmcloud es init
{: #ibmcloud_es_init}

Initialize the Event Streams plug-in.

```sh
ibmcloud es init [-i|--instance-name INSTANCE_NAME] [-a|--api-url API_ENDPOINT_URL]
```
{: codeblock}

**Prerequisites**: None

**Command options**:

--instance-name value, -i value (optional)
:   Name of the Event Streams instance.

--api-url value, -a value (optional)
:   Kafka admin URL of the Event Streams instance.

## ibmcloud es broker
{: #ibmcloud_es_broker}

Display the details of a specific broker.

```sh
ibmcloud es broker [--broker] ID [--json]
```
{: codeblock}

**Prerequisites**: None

**Command options**:

--broker value, -b value
:   Broker ID, you can specify with or without a preceding '--broker' flag.

--json (optional)
:   Output format in JSON.

## ibmcloud es broker-config
{: #ibmcloud_es_broker_config}

Display the configuration of a broker.

```sh
ibmcloud es broker-config [--broker] ID [--filter FILTER] [--verbose] [--json]
```
{: codeblock}

**Prerequisites**: None

**Command options**:

--broker value, -b value
:   Broker ID, you can specify with or without a preceding '--broker' flag.

--filter value, -f value (optional)
:   Filter the list of configuration by using wildcards (*) or a regular expression with forward slash (/) delimiters.

--verbose, -v  (optional)
:   Display verbose configuration information.

--json (optional)
:   Output format in JSON.

## ibmcloud es cluster
{: #ibmcloud_es_cluster}

Display the details of the cluster, including details of all brokers and the Kafka version.

```sh
ibmcloud es cluster [--json]
```
{: codeblock}

**Prerequisites**: None

**Command options**:

--json (optional)
:   Output format in JSON.

## ibmcloud es topic
{: #ibmcloud_es_topic}

Display the details of a topic.

```sh
ibmcloud es topic [--name] TOPIC_NAME [--json]
```
{: codeblock}

**Prerequisites**: None

**Command options**:

--name value, -n value
:   Topic name.

--json (optional)
:   Output format of JSON.

## ibmcloud es topic-create
{: #ibmcloud_es_topic-create}

Create a new topic.

```sh
ibmcloud es topic-create [--name] TOPIC_NAME [--partitions PARTITIONS] [--config KEY=VALUE[;KEY=VALUE]* ]*
```
{: codeblock}

**Prerequisites**: None

**Command options**:

--name value, -n value
:   Topic name.

--partitions value, -p value
:   Set the number of partitions for the topic.

--config KEY=VALUE, -c KEY=VALUE(optional)
:   Set a configuration option for the topic as a KEY=VALUE pair.
:   You can specify multiple --config options. Each '--config' option can specify a semicolon-delimited list of assignments. The following list shows valid configuration keys:

    - cleanup.policy
    - retention.ms
    - retention.bytes
    - segment.bytes
    - segment.ms
    - segment.index.bytes

## ibmcloud es topic-delete
{: #ibmcloud_es_topic_delete}

Delete a topic.

```sh
ibmcloud es topic-delete [--name] TOPIC_NAME [--force]
```
{: codeblock}

**Prerequisites**: None

**Command options**:

--name value, -n value
:   Topic name.

--force, -f (optional)
:   Delete without confirmation.

## ibmcloud es topic-delete-records
{: #ibmcloud_es_topic_delete_records}

Delete records from a topic for a given offset.

```sh
ibmcloud es topic-delete-records [--name] TOPIC_NAME [--partition-offset PARTITION:OFFSET[;PARTITION:OFFSET]* ]* [--force]
```
{: codeblock}

**Prerequisites**: None

**Command options**:

--name value, -n value
:   Topic name.

--partition-offset PARTITION:OFFSET, -p PARTITION:OFFSET
:   The partition and offset to delete records from in PARTITION:OFFSET format.
:   You can specify multiple --partition-offset options or you can specify multiple PARTITION:OFFSET pairs with semicolon delimiters and surrounded with quotations: 'PARTITION1:OFFSET1;PARTITION2:OFFSET2;PARTITION3:OFFSET3'.

--force, -f (optional)
:   Delete records without confirmation.

## ibmcloud es topic-partitions-set
{: #ibmcloud_es_topic_partitions_set}

Set the partitions for a topic.

```sh
ibmcloud es topic-partitions-set [--name] TOPIC_NAME --partitions PARTITIONS
```
{: codeblock}

**Prerequisites**: None

**Command options**:

--name value, -n value
:   Topic name.

--partitions value, -p value
:   Set the number of partitions for the topic.

## ibmcloud es topic-update
{: #ibmcloud_es_topic_update}

Update the configuration for a topic.

```sh
ibmcloud es topic-update [--name] TOPIC_NAME --config KEY[=VALUE][;KEY[=VALUE]]* [--default]
```
{: codeblock}

**Prerequisites**: None

**Command options**:

--name value, -n value
:   Topic name.

--config KEY[=VALUE], -c KEY[=VALUE]
:   Set a configuration option for the topic as a KEY[=VALUE] pair.
:   If VALUE is not given, the '--default' flag is to be specified to indicate resetting the configuration value back to the default. Multiple '--config' options can be specified. Each '--config' option can specify a semicolon-delimited list of assignments. The following list shows valid configuration keys:

    - cleanup.policy
    - retention.ms
    - retention.bytes
    - segment.bytes
    - segment.ms
    - segment.index.bytes

--default, -d  (optional)
:   Reset each configuration parameter that is specified by using '--config' to its default value.

## ibmcloud es topics
{: #ibmcloud_es_topics}

List topics.

```sh
ibmcloud es topics [--filter FILTER] [--json]
```
{: codeblock}

**Prerequisites**: None

**Command options**:

--filter value, -f value (optional)
:   Topic name.

--json (optional)
:   Format output in JSON. Up to 1000 topics are returned.

## ibmcloud es group
{: #ibmcloud_es_group}

Display details of a consumer group.

```sh
ibmcloud es group [--group] GROUP_ID [--json]
```
{: codeblock}

**>Prerequisites**: None

**Command options**:

--group value, -g value
:   Consumer group ID.

--json (optional)
:   Format output in JSON.

## ibmcloud es group-reset
{: #ibmcloud_es_group_reset}

Reset the offsets for a consumer group.

```sh
ibmcloud es group-reset [--group] GROUP_ID [--topic TOPIC_NAME] [--all-topics] --mode MODE --value VALUE [--dry-run] [--execute] [--json]
```
{: codeblock}

**Prerequisites**: None

**Command options**:

--group value, -g value
:   Consumer group ID

--topic value, -t value
:   Topic name. Apply to just this topic. Omit if '--all-topics' flag was supplied.

--all-topics, -a
:   Apply to all topics assigned to the group. Omit if '--topic' flag was supplied.

--mode value, -m value
:   One of the following values: 'earliest', 'latest' or 'datetime'.

--value value, -v value
:   Value for resetting offsets, based on '--mode'. Omit for 'earliest' and 'latest'.
'datetime': use 'YYYY-MM-DDTHH:mm:SS.sss[±hh:mm|Z]'.

--dry-run (optional)
:   Show results and do not implement the changes.

--execute  (optional)
:   Execute the changes to the offsets.

--json (optional)
:   Format output in JSON.

## ibmcloud es groups
{: #ibmcloud_es_groups}

List consumer groups.

```sh
ibmcloud es groups [--filter FILTER] [--json]
```
{: codeblock}

**Prerequisites**: None

**Command options**:
{: #ibmcloud_es_groups_params}

--filter value, -f value (optional)
:   Optional. Filter the list of consumer groups by using wildcards (*) or a regular expression with forward slash (/) delimiters.

--json (optional)
:   Format output in JSON. A maximum of 1000 groups are returned.

## ibmcloud es group-delete
{: #ibmcloud_es_group_delete}

Delete a consumer group.

```sh
ibmcloud es group-delete [--group] GROUP_ID [--force]
```
{: codeblock}

**Prerequisites**: None

**Command options**:

--group value, -g value
:   Consumer group ID

--force, -f (optional)
:   Delete group without confirmation.

## ibmcloud es mirroring-topic-selection
{: #ibmcloud_es_mirroring_topic_selection}

List mirroring topic selection.

```sh
ibmcloud es mirroring-topic-selection [--json]
```
{: codeblock}

**Prerequisites**: Mirroring enabled on Event Streams instance. Event Streams plug-in configured to connect to the mirroring target cluster through `ibmcloud es init`.

**Command options**:

--json (optional)
:   Format output in JSON.

## ibmcloud es mirroring-topic-selection-set
{: #ibmcloud_es_mirroring_topic_selection_set}

Replace mirroring topic selection.

```sh
ibmcloud es mirroring-topic-selection-set (--select pattern1,pattern2 | --none) [--force]
```
{: codeblock}

**Prerequisites**: Mirroring enabled on Event Streams instance. Event Streams plug-in configured to connect to the mirroring target cluster through `ibmcloud es init`.

**Command options**:

--select value
:   Selection of topics to mirror as comma-separated regex patterns. Use '.*' to mirror all topics.

--none
:   Clear currently selected topics (disable mirroring of topics).

--force
:   Optional. Replace mirroring topic selection without confirmation.

## ibmcloud es mirroring-active-topics
{: #ibmcloud_es_mirroring_active_topics}

Get topics that are being actively mirrored.

```sh
ibmcloud es mirroring-active-topics [--json]
```
{: codeblock}

**Prerequisites**: Mirroring enabled on Event Streams instance. Event Streams plug-in configured to connect to the mirroring target cluster through `ibmcloud es init`.

**Command options**:

--json (optional)
:   Format output in JSON.

## ibmcloud es help
{: #ibmcloud_es_help}

Show help for a command, or list all commands.

```sh
ibmcloud es help [COMMAND]
```
{: codeblock}

**Prerequisites**: None

**Command options**:

COMMAND (optional)
:   Show help for a command.

## ibmcloud es schema-import
{: #ibmcloud_es_schema_import}

Import a set of schemas into the registry from a zip file.

```sh
ibmcloud es schema-import [--file] ZIP_FILE_PATH
```
{: codeblock}

**Prerequisites**: This operation is permitted only on Enterprise instances as only the Enterprise plan includes a Schema Registry for using and managing schemas.

**Command options**:

--file value, -f value
:  Zip file path.


## ibmcloud es schemas
{: #ibmcloud_es_schemas}

List the schemas in the registry.

```sh
ibmcloud es schemas [--json]
```
{: codeblock}

**Prerequisites**: This operation is permitted only on Enterprise instances as only the Enterprise plan includes a Schema Registry for using and managing schemas.

**Command options**:

--json
:   Optional. Format output in JSON.


## ibmcloud es schema-create
{: #ibmcloud_es_schema_create}

Create a schema.

```sh
ibmcloud es schema-create [--artifact-id SCHEMA_ID] --file PATH_TO_FILE [--json]
```
{: codeblock}

**Prerequisites**: This operation is permitted only on Enterprise instances as only the Enterprise plan includes a Schema Registry for using and managing schemas.

**Command options**:

--artifact-id value
:   Optional. ID of the schema artifact to be created. If not provided, an ID is generated.

--file value
:   Path to a file containing the JSON definition of the schema to be created.

--json
:   Optional. Format output in JSON.


## ibmcloud es schema
{: #ibmcloud_es_schema}

Display information about a schema.

```sh
ibmcloud es schema [--artifact-id] SCHEMA_ID [--json]
```
{: codeblock}

**Prerequisites**: This operation is permitted only on Enterprise instances as only the Enterprise plan includes a Schema Registry for using and managing schemas.

**Command options**:

--artifact-id value
:   ID of the schema.

--json
:   Optional. Format output in JSON.




## ibmcloud es schema-update
{: #ibmcloud_es_schema_update}

Change the state of a schema.

```sh
ibmcloud es schema-update [--artifact-id] SCHEMA_ID --set ENABLED|DISABLED
```
{: codeblock}

**Prerequisites**: This operation is permitted only on Enterprise instances as only the Enterprise plan includes a Schema Registry for using and managing schemas.

**Command options**:

--artifact-id value
:   ID of the schema.

--set value
:   New state of the schema, must be 'ENABLED' or 'DISABLED'.


## ibmcloud es schema-delete
{: #ibmcloud_es_schema_delete}

Delete a schema.

```sh
ibmcloud es schema-delete [--artifact-id] SCHEMA_ID [--force]
```
{: codeblock}

**Prerequisites**: This operation is permitted only on Enterprise instances as only the Enterprise plan includes a Schema Registry for using and managing schemas.  The schema must be in DISABLED state.

**Command options**:

--artifact-id value
:   ID of the schema.

--force
:   Optional. Delete the schema without confirmation.


## ibmcloud es schema-versions
{: #ibmcloud_es_schema_versions}

Display versions of a schema.

```sh
ibmcloud es schema-versions [--artifact-id] SCHEMA_ID [--json]
```
{: codeblock}

**Prerequisites**: This operation is permitted only on Enterprise instances as only the Enterprise plan includes a Schema Registry for using and managing schemas.

**Command options**:

--artifact-id value
:   ID of the schema.

--json
:   Optional. Format output in JSON.


## ibmcloud es schema-version-create
{: #ibmcloud_es_schema_version_create}

Create a new version of a schema.

```sh
ibmcloud es schema-version-create [--artifact-id] SCHEMA_ID --file PATH_TO_FILE [--json]
```
{: codeblock}

**Prerequisites**: This operation is permitted only on Enterprise instances as only the Enterprise plan includes a Schema Registry for using and managing schemas.

**Command options**:

--artifact-id value
:   ID of the schema artifact for which the new version is to be created.

--file value
:   Path to a file containing the JSON definition of the schema version to be created.

--json
:   Optional. Format output in JSON.


## ibmcloud es schema-version
{: #ibmcloud_es_schema_version}

Display information about a schema version.

```sh
ibmcloud es schema-version [--artifact-id SCHEMA_ID --version VERSION] [--global-id GLOBAL_ID] [--json]
```
{: codeblock}

**Prerequisites**: This operation is permitted only on Enterprise instances as only the Enterprise plan includes a Schema Registry for using and managing schemas. Use either the `--artifact-id` and `--version` flags, or the `--global-id` flag.

**Command options**:

--artifact-id value
:   ID of the schema artifact.

--version value
:   Version to be displayed.

--global-id value
:   Global ID of the schema version to be displayed.

--json
:   Optional. Format output in JSON.


## ibmcloud es schema-version-update
{: #ibmcloud_es_schema_version_update}

Change the state of a schema version.

```sh
ibmcloud es schema-version-update [--artifact-id] SCHEMA_ID --version VERSION --set ENABLED|DISABLED
```
{: codeblock}

**Prerequisites**: This operation is permitted only on Enterprise instances as only the Enterprise plan includes a Schema Registry for using and managing schemas.

**Command options**:

--artifact-id value
:   ID of the schema artifact.

--version value
:   Version to be updated.

--set value
:   New state of the schema version, must be either 'ENABLED' or 'DISABLED'.

--json
:   Optional. Format output in JSON.


## ibmcloud es schema-version-delete
{: #ibmcloud_es_schema_version_delete}

Delete a version of a schema.

```sh
ibmcloud es schema-version-delete [--artifact-id] SCHEMA_ID --version VERSION [--force]
```
{: codeblock}

**Prerequisites**: This operation is permitted only on Enterprise instances as only the Enterprise plan includes a Schema Registry for using and managing schemas. The schema version must be in DISABLED state.


**Command options**:

--artifact-id value
:   ID of the schema artifact.

--version value
:   Version to be deleted.

--force
:   Optional. Delete the schema version without confirmation.


## ibmcloud es schema-compatibility-rule-create
{: #ibmcloud_es_schema_compatibility_rule_create}

Create schema compatibility rule.

```sh
ibmcloud es schema-compatibility-rule-create [--artifact-id] SCHEMA_ID --set RULE
```
{: codeblock}

**Prerequisites**: This operation is permitted only on Enterprise instances as only the Enterprise plan includes a Schema Registry for using and managing schemas.


**Command options**:

--artifact-id value
:   ID of the schema.

--set value
:   The value of the compatibility rule. Allowed values are "NONE", "FULL", "FULL_TRANSITIVE", "FORWARD", "FORWARD_TRANSITIVE", "BACKWARD", and "BACKWARD_TRANSITIVE".



## ibmcloud es schema-compatibility-rule
{: #ibmcloud_es_schema_compatibility_rule}

Display schema or global compatibility rule.

```sh
ibmcloud es es schema-compatibility-rule [ [--artifact-id] SCHEMA_ID | --global ]  [--json]
```
{: codeblock}

**Prerequisites**: This operation is permitted only on Enterprise instances as only the Enterprise plan includes a Schema Registry for using and managing schemas. Use either the `--artifact-id` or the `--global` flag.


**Command options**:

--artifact-id value
:   Optional. ID of the schema.

--global
:   Optional. Display the global compatibility rule.

--json
:   Optional. Format output in JSON.


## ibmcloud es schema-compatibility-rule-update
{: #ibmcloud_es_schema_compatibility_rule_update}

Change schema or global compatibility rule.

```sh
ibmcloud es schema-compatibility-rule-update [ [--artifact-id] SCHEMA_ID | --global ] --set RULE
```
{: codeblock}

**Prerequisites**: This operation is permitted only on Enterprise instances as only the Enterprise plan includes a Schema Registry for using and managing schemas. Use either the `--artifact-id` or the `--global` flag.


**Command options**:

--artifact-id value
:   Optional. ID of the schema.

--global
:   Optional. Change the global compatibility rule.

--set value
:   The value of the compatibility rule. Allowed values are "NONE", "FULL", "FULL_TRANSITIVE", "FORWARD", "FORWARD_TRANSITIVE", "BACKWARD", and "BACKWARD_TRANSITIVE".


## ibmcloud es schema-compatibility-rule-delete
{: #ibmcloud_es_schema_compatibility_rule_delete}

Delete schema compatibility rule.

```sh
ibmcloud es schema-compatibility-rule-delete [--artifact-id] SCHEMA_ID [--force]
```
{: codeblock}

**Prerequisites**: This operation is permitted only on Enterprise instances as only the Enterprise plan includes a Schema Registry for using and managing schemas.


**Command options**:

--artifact-id value
:   ID of the schema.

--force
:   Optional. Delete the compatibility rule without confirmation.