snippetbashTip
rpk — Manage Redpanda topics, clusters, groups, security, and more via a single binary. More information:
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 listDisplay cluster information:
rpk cluster infoList all consumer groups:
rpk group listDescribe a consumer group with lag information:
rpk group describe {{group_name}}Display version:
rpk versionCode 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 listDisplay cluster information
rpk cluster infoContext
tldr-pages: common/rpk
Revisions (0)
No revisions yet.