HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

rpk — Manage Redpanda topics, clusters, groups, security, and more via a single binary. More information:

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandredpandarpktopicsclimanageclustersgroups

Problem

How to use the rpk command: Manage Redpanda topics, clusters, groups, security, and more via a single binary. More information: <https://docs.redpanda.com/current/reference/rpk/>.

Solution

rpk — Manage Redpanda topics, clusters, groups, security, and more via a single binary. More information: <https://docs.redpanda.com/current/reference/rpk/>.

Create a new topic:
rpk topic create {{topic_name}}


Produce a message to a topic:
rpk topic produce {{topic_name}}


Consume messages from multiple topics:
rpk topic consume {{topic_name1 topic_name2 ...}}


List all topics:
rpk topic list


Display cluster information:
rpk cluster info


List all consumer groups:
rpk group list


Describe a consumer group with lag information:
rpk group describe {{group_name}}


Display version:
rpk version

Code Snippets

Create a new topic

rpk topic create {{topic_name}}

Produce a message to a topic

rpk topic produce {{topic_name}}

Consume messages from multiple topics

rpk topic consume {{topic_name1 topic_name2 ...}}

List all topics

rpk topic list

Display cluster information

rpk cluster info

Context

tldr-pages: common/rpk

Revisions (0)

No revisions yet.