# hz を Homebrew でインストール

hz のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:hz
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install hz
```

  証拠: local Homebrew formula metadata

## パッケージ情報

- **パッケージキー:** brew:hz
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/hz>
- **バージョン:** 0.9.7
- **ソース概要:** Golang HTTP framework for microservices
- **ホームページ:** <https://www.cloudwego.io>
- **リポジトリ:** <https://github.com/cloudwego/hertz>
- **上流ドキュメント:** <https://www.cloudwego.io>
- **ライセンス:** Apache-2.0
- **ソースアーカイブ:** <https://github.com/cloudwego/hertz/archive/refs/tags/cmd/hz/v0.9.7.tar.gz>
- **最終更新:** 2026-07-25T20:56:31-04:00
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- hz (cli)
- protoc-gen-hertz (cli)
- thrift-gen-hertz (cli)
- hz (エイリアス)
- protoc-gen-hertz (エイリアス)
- thrift-gen-hertz (エイリアス)

## ビルド依存関係

- go

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 0.9.7
- マネージャ更新日: 2026-07-25
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/cloudwego/hertz
- 検出された最新: cmd/hz/v0.9.7 (最新)
## プロジェクトの歴史と使われ方

hz is the command-line generator distributed with CloudWeGo Hertz, ByteDance's Go HTTP framework for microservices. In package-manager form it installs the hz executable and its protocol compiler plugins, making Hertz scaffolding available as a standalone developer tool.

### プロジェクトの歴史

Hertz began inside ByteDance as a high-performance HTTP framework shaped by internal microservice requirements. CloudWeGo's README says Hertz was originally forked from fasthttp, inspired by Gin and Echo, and paired with ByteDance's Netpoll network library.

CloudWeGo announced Hertz as an open source project on June 21, 2022, after more than a year of internal use. The same announcement describes hz as the one-click command-line tool that generates project scaffolding from interface definition files.

The Homebrew formula packages the command-line side of the project from the cloudwego/hertz repository, installing hz along with protoc-gen-hertz and thrift-gen-hertz.

### 採用の歴史

Before public release, Hertz had already become a large internal ByteDance HTTP framework, with CloudWeGo reporting more than 10,000 online services and peak traffic above 40 million QPS. Public adoption grew around the CloudWeGo ecosystem, where Hertz, Kitex, Netpoll, examples, and hertz-contrib extensions form a Go microservice toolkit.

For package managers, hz is the convenient entry point: developers can install the generator without manually building the Hertz repository, then generate or update service scaffolding from Thrift or Protobuf IDL.

### 使われ方

hz is used to create and maintain Hertz projects from service definitions. The CloudWeGo announcement says it supports Thrift and Protobuf, depends on the official Protobuf compiler and Thriftgo, and can update generated scaffolding after IDL changes.

The surrounding Hertz framework targets high-usability, high-performance, extensible HTTP services with middleware, streaming, protocol support, observability hooks, and optional Netpoll or Go net transport behavior.

### パッケージ好きにとっての重要性

hz is package-nerd significant because it packages a generator rather than only a runtime library. It gives Homebrew users the same style of one-command workflow familiar from protoc plugins, thrift generators, and framework CLIs, while leaving application code in normal Go modules.

It also represents a common packaging pattern for large Go frameworks: the repository contains libraries, examples, generated-code support, and release tags, but package managers expose the small set of executables developers actually need on PATH.

### タイムライン

- 2021: Hertz launched internally at ByteDance according to CloudWeGo's open source announcement.
- 2022-05: The cloudwego/hertz GitHub repository was created.
- 2022-06: CloudWeGo announced Hertz as an open source project and described hz as the Hertz code-generation command.
- 2025: Homebrew tracked the cmd/hz v0.9.x tag series for the standalone hz formula.
- 2026: Hertz releases continued on the v0.10.x line.

### Related projects

- Related CloudWeGo projects include Netpoll, Kitex, Hertz examples, hertz-benchmark, and hertz-contrib. The README also names fasthttp, Gin, and Echo as important influences.

### ソース

- <https://formulae.brew.sh/formula/hz>
- <https://github.com/cloudwego/hertz>
- <https://www.cloudwego.io/blog/2022/06/21/hertz-an-ultra-large-scale-enterprise-level-microservice-http-framework-is-now-officially-open-source/>
- <https://www.cloudwego.io/docs/hertz/overview/>


## セキュリティノート

broad file, network, media, or database tool signal.

- **Geiger リスク:** blue / 中
- broad file, network, media, or database tool signal

## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** hz
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 関連リンク

- [Secret-risk packages](https://pkg.so/ja/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://pkg.so/ja/brew/go/) - Build dependency declared by Homebrew.
- [protoc-gen-go](https://pkg.so/ja/brew/protoc-gen-go/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, go, protobuf.
- [protoc-gen-go-grpc](https://pkg.so/ja/brew/protoc-gen-go-grpc/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, go, protobuf.
- [kitex](https://pkg.so/ja/brew/kitex/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, go, microservices.
- [fbthrift](https://pkg.so/ja/brew/fbthrift/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, thrift.
- [buf](https://pkg.so/ja/brew/buf/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, protobuf.
- [protobuf-c](https://pkg.so/ja/brew/protobuf-c/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, protobuf.
- [mockery](https://pkg.so/ja/brew/mockery/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, go.
- [sqlc](https://pkg.so/ja/brew/sqlc/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, go.

## Combined YAML source

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


## ソース

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
