# 使用 Homebrew, MacPorts, Nix, scoop 安装 kaf

查看 kaf 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:kaf
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install kaf
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install kaf
```

  证据: MacPorts ports tree: sysutils/kaf/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#kaf
```

  证据: nixpkgs package indexes: pkgs/by-name/ka/kaf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install main/kaf
```

  证据: Scoop official bucket manifest trees: bucket/kaf.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:kaf
- **软件包管理器:** Homebrew
- **版本:** 0.2.14
- **来源摘要:** Modern CLI for Apache Kafka
- **主页:** <https://github.com/birdayz/kaf>
- **仓库:** <https://github.com/birdayz/kaf>
- **最后更新:** 2026-07-27T21:58:35+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- kaf (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.2.14
## 项目历史与用法

Kaf is a Go-based command-line client for Apache Kafka. It gives Kafka users a compact native CLI alternative to the JVM-centered scripts that ship with Apache Kafka itself.

### 项目历史

The birdayz/kaf repository was created in September 2018, and the first GitHub release series began with v0.1.0 on September 30, 2018. The project describes itself as a modern CLI for Apache Kafka, written in Go.

Its design follows the pattern of a single-purpose operational CLI: configuration lives under the user's home directory, commands wrap common Kafka interactions, and the binary can be distributed through package managers without installing the full Kafka distribution.

### 采用历史

Kaf has a smaller footprint than Apache Kafka or K9s, but its package-manager presence in Homebrew, MacPorts, Nix, and Scoop shows the value of a lightweight Kafka CLI for local workstations and scripts.

The repository metadata showed a multi-year maintenance history and a modest but real audience by July 2026, with thousands of GitHub stars rather than only incidental packaging.

### 使用方式

Kaf is used for direct Kafka administration and inspection tasks such as working with topics, consumers, producers, and cluster metadata from a local shell.

Because Kafka credentials and cluster definitions can live in the Kaf configuration file, the package is part of the user's data-infrastructure access surface, not merely a display utility.

### 为什么软件包爱好者会关心

Kaf matters to package collectors because it represents the ergonomic rewrite pattern: a large server project ships official scripts, and the ecosystem produces a smaller native CLI that is easier to install, tab-complete, and carry between machines.

Its Homebrew formula is also useful metadata: it distinguishes the Kafka client utility named kaf from Apache Kafka itself and from similarly named tools such as kafkactl.

### 时间线

- 2018-09: Public GitHub repository created.
- 2018-09-30: v0.1.0 release published.
- 2026-07-01: Repository metadata showed more than 2,400 stars.

### Related projects

- Kaf is related to Apache Kafka, Sarama-based Go Kafka tooling, kafkactl, kcat, and the Kafka command scripts included with the Apache distribution.

### 来源

- <https://api.github.com/repos/birdayz/kaf>
- <https://formulae.brew.sh/formula/kaf>
- <https://github.com/birdayz/kaf>
- <https://github.com/birdayz/kaf/releases>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.kaf/config

## Credential files

- Unix: ~/.kaf/config
## 其他软件包管理器记录

- Nix - kaf: normalized package name match | nixpkgs package indexes: pkgs/by-name/ka/kaf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - kaf: normalized package name match | MacPorts ports tree: sysutils/kaf/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/kaf: normalized package name match | Scoop official bucket manifest trees: bucket/kaf.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/kaf.yml](https://github.com/mxcl/pkgdb/blob/main/combined/kaf.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
