LinuxCommandLibrary

rpk

Manage Redpanda streaming topics and clusters

TLDR

Create topic

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

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

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community