# 使用 Homebrew 安装 gwctl

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

## 安装

```sh
sudo av install brew:gwctl
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gwctl
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:gwctl
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/gwctl>
- **版本:** 0.2.0
- **来源摘要:** CLI for managing and inspecting Gateway API resources in Kubernetes clusters
- **主页:** <https://github.com/kubernetes-sigs/gwctl>
- **仓库:** <https://github.com/kubernetes-sigs/gwctl>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/kubernetes-sigs/gwctl/archive/refs/tags/v0.2.0.tar.gz>
- **最后更新:** 2026-07-27T14:57:53+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- gwctl (cli)
- gwctl (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.2.0
- 管理器更新时间: 2026-07-27
- 本地数据: OK
- 上游仓库: https://github.com/kubernetes-sigs/gwctl
- 检测到的最新版本: v0.2.0 (当前)
## 项目历史与用法

gwctl is a Kubernetes SIGs command-line tool for managing and understanding Kubernetes Gateway API resources. Its README describes create, view, describe, analyze, delete, and graphing workflows for Gateway API resources and other Kubernetes objects.

### 项目历史

The public GitHub repository was created on 2024-09-12 under kubernetes-sigs. The README places the tool inside the Gateway API ecosystem and explicitly marks it as an experimental Gateway API feature, meaning incompatible changes are expected while the design settles.

GitHub releases show v0.1.0 on 2024-11-01 and v0.2.0 on 2025-11-28. That release cadence and the experimental warning fit a young Kubernetes-adjacent CLI being iterated alongside Gateway API resource patterns.

### 采用历史

gwctl's adoption path is through the Kubernetes SIGs organization and the Gateway API community rather than through a standalone vendor. The README says discussion happens in the same Slack channel and community meetings as the rest of the Gateway API subproject.

Homebrew packaging gives macOS and Linux users a short install path, while source builds use Go, Git, and make. For cluster operators, this places gwctl beside kubectl as a specialized inspection and analysis tool for Gateway API topologies.

### 使用方式

The README demonstrates applying Gateway API CRDs, loading sample resources, listing GatewayClasses, Gateways, HTTPRoutes, Services, policies, pods, and CRDs, and describing Gateway resources with related routes, backends, and policy information.

gwctl also has analysis and graphing roles: gwctl analyze can evaluate resource definitions before creation, and gwctl get -o graph emits DOT graphs that visualize relationships among Gateway API resources.

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

gwctl is package-manager relevant because it packages a specialized Kubernetes API understanding into one CLI. Rather than being another generic kubectl wrapper, it encodes Gateway API relationships, policy inheritance, warnings, and graph output, which are hard to see from raw YAML alone.

### 时间线

- 2024-09-12: Public kubernetes-sigs/gwctl repository created.
- 2024-11-01: v0.1.0 GitHub release published.
- 2025-11-28: v0.2.0 GitHub release published.
- 2026: README continues to describe gwctl as an experimental Gateway API feature.

### Related projects

- Kubernetes: gwctl manages resources in Kubernetes clusters.
- Gateway API: gwctl is developed around Gateway API resource models and community channels.
- kubectl and kustomize: gwctl examples use Kubernetes-style resource operations and kustomize URLs.

### 来源

- <https://api.github.com/repos/kubernetes-sigs/gwctl>
- <https://api.github.com/repos/kubernetes-sigs/gwctl/releases?per_page=100>
- <https://gateway-api.sigs.k8s.io/community/>
- <https://gateway-api.sigs.k8s.io/concepts/versioning/#release-channels-eg-experimental-standard>
- <https://github.com/kubernetes-sigs/gwctl>
- <https://raw.githubusercontent.com/kubernetes-sigs/gwctl/main/README.md>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gwctl
- **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


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [ko](https://pkg.so/zh-hans/brew/ko/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, go, kubernetes.
- [ingress2gateway](https://pkg.so/zh-hans/brew/ingress2gateway/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, gateway-api, kubernetes.
- [egctl](https://pkg.so/zh-hans/brew/egctl/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, gateway-api, kubernetes.
- [cloud-provider-kind](https://pkg.so/zh-hans/brew/cloud-provider-kind/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, gateway-api, kubernetes.
- [kubevpn](https://pkg.so/zh-hans/brew/kubevpn/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, kubernetes, networking.
- [chaoskube](https://pkg.so/zh-hans/brew/chaoskube/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, go, kubernetes.
- [havener](https://pkg.so/zh-hans/brew/havener/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, go, kubernetes.
- [kubectl-klock](https://pkg.so/zh-hans/brew/kubectl-klock/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, go, kubernetes.

## Combined YAML source

View the package source record on GitHub. [combined/gwctl.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gwctl.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
