☰ Menu
CLI Open source 3 installs/mo

topicctl for Mac

topicctl

A tool for easy, declarative management of Kafka topics. Includes the ability to "apply" topic changes from YAML as well as a repl for interactive exploration of brokers, topics, consumer groups, messages, and more.

topicctl — overview

A tool for easy, declarative management of Kafka topics. Includes the ability to "apply" topic changes from YAML as well as a repl for interactive exploration of brokers, topics, consumer groups, messages, and more.

Motivation

Managing Kafka topics via the standard tooling can be tedious and error-prone; there is no standard, declarative way to define topics (e.g., YAML files that can be checked-in to git), and understanding the state of a cluster at any given point in time requires knowing and using multiple, different commands with different interfaces.

We created topicctl to make the management of our Kafka topics more transparent and user-friendly. The project was inspired by kubectl and other tools that we've used in non-Kafka-related contexts.

See this blog post for more details.

? Upgrading from v0

We recently revamped topicctl to support ZooKeeper-less cluster access as well as some additional security options (TLS/SSL and SASL)! See this blog post to learn more about why and how we did this.

All changes should be backwards compatible, but you'll need to update your cluster configs if you want to take advantage of these new features; see the clusters section below for more details on the latest config format.

The code for the old version has been preserved in the v0 branch if you run into problems and need to revert.

Related projects

Check out the data-digger for a command-line tool that makes it easy to tail and summarize structured data in Kafka.

Getting started

Installation

Either: Run go install github.com/segmentio/topicctl/cmd/topicctl@latest Clone this repo and run make install in the repo root Use the Docker image: docker pull segment/topicctl

If you use (1) or (2), the binary will be placed in $GOPATH/bin.

If you use Docker, you can run the tool via docker run -ti --rm segment/topicctl [subcommand] [flags]. Depending on your Docker setup and what you're trying to do, you may also need to run in the host network via --net=host and/or mount local volumes with -v.

Quick tour Start up a 6 node Kafka cluster locally: Run the net alias script to make the broker addresses available on localhost: Apply the topic configs in examples/local-cluster/topics: Send some test messages to the topic-default topic: Open up the repl (while keeping the tester running in a separate terminal): Run some test commands: Increase the number of partitions in the topic-default topic by changing the partitions: ... value in topic-default.yaml to 9 and re-applying: Bring down the local cluster:

Usage

Subcommands

apply

The apply subcommand ensures that the actual state of a topic in the cluster matches the desired state in its config. If the topic doesn't exist, the tool will create it. If the topic already exists but its cluster state is out-of-sync, then the tool will initiate the necessary changes to bring it into compliance.

See the Config formats section below for more information on the expected file formats.

bootstrap

Details

声明式 Kafka 主题管理

How to install topicctl

  1. Open Terminal (press ⌘ + Space and type “Terminal”).
  2. If Homebrew is not installed yet, run the command below first.
  3. Run this command:

Latest 10 releases

Last updated 2026-03-18; current version v2.0.2, with the latest 10 releases listed.

VersionReleasedTypeSizemacOSWindowsLinux
v2.0.22026-03-18Stable————
v2.0.12026-01-15Stable————
v2.0.02026-01-07Stable————
v1.23.12025-12-08Stable————
v1.23.02025-12-08Stable————
v1.22.02025-09-23Stable————
v1.21.02025-09-18Stable————
v1.20.22025-07-25Stable————
v1.20.12025-06-06Stable————
v1.20.02025-05-29Stable————

Data from GitHub Releases; stable releases first, each group sorted newest first.

Prebuilt bottle platforms

Official Homebrew bottles cover:

  • Apple silicon · latest macOS
  • Apple silicon · macOS 26 Tahoe
  • Apple silicon · macOS 15 Sequoia
  • Apple silicon · macOS 14 Sonoma
  • Intel · macOS 14 Sonoma
  • Linux · ARM64
  • Linux · x86_64

Compared with similar apps

Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.

Compared with similar apps
AppVersionLicenseArchitecture30-day installs
topicctlv2.0.2MITCLI3
burrowv1.9.6Apache-2.0CLI5
khaosv0.10.0Apache-2.0CLI0
yozefuv0.0.32Apache-2.0CLI11

Similar apps: Command-line Tools

Leave a comment

评论表单加载中…