Skip to content
a CLI for Apache Pulsar written in golang
Go Other
  1. Go 99.8%
  2. Other 0.2%
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Language LICENSE GoDoc


A CLI tool for the Apache Pulsar project.

Available Releases

Version Reference
0.1.0 Command Reference


Install pulsarctl binary with curl on Linux or macOS

sh -c "$(curl -fsSL"

Install pulsarctl binary on Windows

  1. Download the executable from
  2. Add the pulsarctl directory to your system PATH.
  3. Type pulsarctl -h at CMD to test pulsarctl is work.

Install by code


  • Go 1.11 +

If you have not installed Go, install it according to the installation instruction.

Since the go mod package management tool is used in this project, Go 1.11 or higher version is required.

Download Code

  1. Clone the project from GitHub to your local.
git clone
  1. Use go mod to get the dependencies needed for the project.
go mod download

After entering the go mod download command, if some libs can not be downloaded, then you can download them by referring to the proxy provided by


export GO111MODULE=on

go build -o pulsarctl main.go

Project Status

The following is an incomplete list of features that are not yet implemented:


  • localrun


  • localrun
  • available-sources
  • reload


  • localrun
  • available-sources
  • reload


  • extract


  • delete-bookie-affinity-group
  • get-bookie-affinity-group
  • set-bookie-affinity-group


  • racks-placement
  • get-bookie-rack
  • delete-bookie-rack
  • set-bookie-rack

Different With Java Pulsar Admin

We move the subscription commands from the Topics to the Subscriptions in pulsarctl.

pulsar-admin pulsarctl
bin/pulsar-admin topics create-subscription pulsarctl subscription create
bin/pulsar-admin topics unsubscribe pulsarctl subscription delete
bin/pulsar-admin topics skip pulsarctl subscription skip
bin/pulsar-admin topics expire-messages pulsarctl subscription expire
bin/pulsar-admin topics peek-messages pulsarctl subscription peek
bin/pulsar-admin topics reset-cursor pulsarctl subscription seek
bin/pulsar-admin topics subscriptions pulsarctl subscription list


Contributions are welcomed and greatly appreciated. For more information about how to submit a patch and the contribution workflow, see


Licensed under the Apache License Version 2.0:

You can’t perform that action at this time.