This document discusses using pulsarctl and pulsar-manager to manage a Pulsar cluster. It introduces pulsarctl as a CLI tool developed in Go for managing Pulsar clusters that addresses some issues with the existing Pulsar admin tool. It then covers how to use the Admin API and CLI features of pulsarctl. Finally, it outlines some future plans, including adding more features to pulsarctl and pulsar-manager.
5. 基于 REST API 使⽤ Go 语⾔开发的⼀个 CTL ⼯具
What is pulsarctl
Go Admin API
Command-cli tools
pulsarctl
6. How to use Admin Api
https://godoc.org/github.com/streamnative/pulsarctl
7. How to use Admin Api
Cluster.List()
instantiate a admin object
Call interface
1
2
https://github.com/streamnative/pulsarctl/blob/master/examples.go
8. How to use CLI
• Used for : 对该命令的使⽤场景进⾏描述
• Required Permission:使⽤该命令所需要的
权限
• Output:列出使⽤该命令所有的输出信息,包
括正确的输出和错误的输出
• Examples:列出命令的使⽤示例
• Flags: 该命令所需要的所有参数列表
https://streamnative.io/docs/pulsarctl/v0.1.0/