The warpstream cli subcommand is the command-line tool for interacting with a WarpStream cluster. It provides functionality similar to the Apache Kafka command-line tools for administering, producing to, and consuming from a Kafka cluster.
Usage:
warpstream cli <sub-command> [options]
Run warpstream cli with no sub-command to print the list of available sub-commands, or run warpstream cli <sub-command> --help to see the flags a specific sub-command accepts.
Every sub-command that talks to a Kafka broker accepts the following flags. They can also be supplied via the corresponding environment variables where noted.
Flag
Environment variable
Description
-bootstrap-host
BOOTSTRAP_HOST
Kafka bootstrap host. Default: localhost.
-bootstrap-port
BOOTSTRAP_PORT
Kafka bootstrap port. Default: 9092.
-client-id
Client ID to pass along to Kafka. Default: warpstream-cli.
-enable-tls
Dial with TLS.
-tls-client-cert-file
Path to the X.509 client certificate file (PEM).
-tls-client-key-file
Path to the X.509 client private key file (PEM).
-tls-server-ca-cert-file
Path to the X.509 server CA certificate file (PEM). If unset, the host’s root certificate pool is used.
-tls-disable-hostname-verification
If set to true, hostname verification is disabled (with agent v849+).
-sasl-scram
Use SASL SCRAM authentication (SASL PLAIN by default).
-sasl-username
SASL_USERNAME
Username for SASL authentication.
-sasl-password
SASL_PASSWORD
Password for SASL authentication.
-kafka-log-level
Log level of the underlying Kafka client. One of DEBUG, INFO, WARN, ERROR. Default: WARN.
Sub-commands accept additional flags of their own — see each command’s page or run warpstream cli <sub-command> --help.
Add, update, or delete cluster-level (broker) configuration values. Use --delete-config to reset a value back to its WarpStream default. Incremental by default; pass --full-state to replace the entire config set.
describe-broker-configs
Print the current cluster-level (broker) configuration values.
broker-metadata
Print broker metadata as returned by the Kafka Metadata API.
api-versions
Print the Kafka API versions supported by the broker.