rpk

Manage Redpanda streaming topics and clusters

TLDR

Create topic
$ rpk topic create [topic-name]
List topics
$ rpk topic list
Produce message
$ rpk topic produce [topic] -k [key]
Consume messages
$ rpk topic consume [topic]
Describe cluster
$ rpk cluster info
Check configuration
$ rpk redpanda config

SYNOPSIS

rpk command [subcommand] [options]

DESCRIPTION

rpk is the command-line interface for Redpanda, a Kafka-compatible streaming data platform. It provides commands for managing topics, producing and consuming messages, administering clusters, and configuring Redpanda nodes, using a syntax familiar to users of Kafka's CLI tools.Topic operations include creating, deleting, describing, and listing topics, as well as producing messages to and consuming messages from topics for testing and debugging. Cluster commands provide health checks, configuration inspection, and broker management. The tool also handles ACL (Access Control List) management and consumer group operations.The -X flag passes client properties like authentication credentials and TLS settings, and --brokers specifies the cluster endpoints to connect to.

PARAMETERS

topic

Topic operations.
cluster
Cluster commands.
redpanda
Redpanda management.
acl
ACL management.
group
Consumer groups.
-X PROP=VAL
Client property.
--brokers HOSTS
Broker addresses.

CAVEATS

Requires Redpanda/Kafka. Network access needed. Authentication may be required.

HISTORY

rpk is the command-line interface for Redpanda, a Kafka-compatible streaming platform written in C++.

SEE ALSO

kafka-topics(1), kafkacat(1)