pulsarctl
is a CLI tool that you can use to manage Pulsar clusters. This document provides examples of how to use the pulsarctl
CLI tool to connect to a Pulsar cluster through a token or an OAuth2 credential file.
pulsarctl
CLI tool to connect to your Pulsar cluster using a token and then list tenants available for this cluster.
admin-service-url
and token
parameters based on the descriptions in the prepare to connect to a Pulsar cluster user guide.
pulsarctl
CLI tool, you must use the pulsarctl context set
command to set a context (cluster) in advance.pulsarctl
CLI tool uses a configuration file for cluster-specific settings. Each cluster is associated with a context. This example creates a context called neo-1
based on the App registration details.
admin-service-url
: the service URL of your Pulsar cluster.issuer-endpoint
: the URL of your OAuth2 identity provider.audience
: the audience of your Pulsar cluster.key-file
: the absolute path to your OAuth2 credential file.neo-1
.
Input