Automic VaultAutomic Vault

brew

使用 Homebrew 安装 hz

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install hz

local Homebrew formula metadata

概览

软件包摘要

Golang HTTP framework for microservices

命令和别名

  • hz
  • protoc-gen-hertz
  • thrift-gen-hertz

历史

项目历史与用法

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.

安全态势

风险级别:blue

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

风险分类器

blue 风险 · 中 置信度 · tool

原因

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

信号

  • text:http

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 8 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
hzcli全局可执行文件
protoc-gen-hertzcli全局可执行文件
thrift-gen-hertzcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本0.9.7
管理器更新时间2026-06-15
本地数据OK
上游当前
检测到的最新版本cmd/hz/v0.9.7

https://github.com/cloudwego/hertz

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:hz
版本0.9.7
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/hz
主页https://www.cloudwego.io
仓库https://github.com/cloudwego/hertz
上游文档https://www.cloudwego.io/docs/hertz
许可证Apache-2.0
源码归档https://github.com/cloudwego/hertz/archive/refs/tags/cmd/hz/v0.9.7.tar.gz
最后更新2026-06-15T10:20:18-04:00
Pulseupdated
构建依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namehz
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

Combined YAML source

View the package source record on GitHub.

combined/hz.yml

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • package relationship graph
  • package version freshness
  • package-page enrichment