curl -Ls "https://raw.githubusercontent.com/datastax/homebrew-luna-streaming-shell/master/get-pulsar-shell.sh" | bash
You can install the latest Luna Streaming shell using:
brew install datastax/luna-streaming-shell/pulsar-shell
pulsar-shell
or
brew tap datastax/luna-streaming-shell && brew install pulsar-shell
pulsar-shell
The current Luna Streaming version is:
Download the client.conf
from a local file, a remote server or write it inline:
pulsar-shell
default(localhost)> config create mycluster --file $local_file
default(localhost)> config create mycluster --url https://url
default(localhost)> config create mycluster --value "
dquote> webServiceUrl=https://admin-url:8443
dquote> brokerServiceUrl=pulsar://service-url:6651
dquote> authPlugin=org.apache.pulsar.client.impl.auth.AuthenticationToken
dquote> authParams=token:xxx
dquote> "
or without using the interactive mode:
echo '
config create mycluster --value 'webServiceUrl=https://admin-url:8443\nbrokerServiceUrl=pulsar://service-url:6651\nauthPlugin=org.apache.pulsar.client.impl.auth.AuthenticationToken\nauthParams=token:xxx\n'
config view mycluster
config use mycluster
' | pulsar-shell --fail-on-error -
pulsar-shell
You can check the Datastax Luna Streaming changelog to see what's new.
Visit Apache Pulsar Shell documentation for more details.