# 使用 Homebrew 安装 swctl

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

## 安装

```sh
sudo av install brew:swctl
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install swctl
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:swctl
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/swctl>
- **版本:** 0.14.0
- **来源摘要:** Apache SkyWalking CLI (Command-line Interface)
- **主页:** <https://skywalking.apache.org/>
- **仓库:** <https://github.com/apache/skywalking-cli>
- **上游文档:** <https://skywalking.apache.org/>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/apache/skywalking-cli/archive/refs/tags/0.14.0.tar.gz>
- **最后更新:** 2026-07-26T04:03:48+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- swctl (cli)
- swctl (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

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

Apache SkyWalking CLI, installed as swctl, is the command-line companion for Apache SkyWalking. It gives operators a shell-oriented alternative to the SkyWalking browser UI by issuing GraphQL queries against SkyWalking services.

### 项目历史

The Apache SkyWalking project announced SkyWalking CLI 0.1.0 on December 10, 2019. That first release added commands for listing services, instances, endpoints, and querying metrics, including an ASCII graph mode for linear metrics.

### 采用历史

The CLI grew as part of the wider SkyWalking observability distribution rather than as an independent general-purpose tool. Official documentation and examples use swctl in operational contexts such as health checks, debugging end-to-end tests, and checking reported Kubernetes events.

### 使用方式

swctl is commonly used by SkyWalking users and operations teams to query OAP through the same GraphQL protocol used by the UI. The official README documents installation through scripts, release binaries, source builds, and Homebrew on macOS.

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

For package maintainers, swctl is a small but useful example of a project-specific operations CLI: it is packaged separately from the main server stack, has a stable executable name, and lets scripted deployments inspect observability state without bundling a full UI.

### 时间线

- 2019: Apache SkyWalking CLI 0.1.0 released.
- 2020: Multiple SkyWalking CLI releases followed as the SkyWalking 8 series matured.
- 2024: SkyWalking 10 release notes mention removal of the CLI from the image, reinforcing the CLI as a separately installed tool.

### Related projects

- Apache SkyWalking OAP is the backend swctl queries.
- Apache SkyWalking UI is the browser interface that swctl complements.
- Apache SkyWalking Kubernetes and E2E documentation show swctl used in deployment and test workflows.

### 来源

- <https://github.com/apache/skywalking-cli>
- <https://skywalking.apache.org/docs/main/next/en/changes/changes-10.0.0/>
- <https://skywalking.apache.org/docs/main/next/en/setup/backend/backend-health-check/>
- <https://skywalking.apache.org/events/release-apache-skywalking-cli-0-1-0/>


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** swctl
- **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.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [license-eye](https://pkg.so/zh-hans/brew/license-eye/) - Shares the same upstream homepage.
- [prometheus](https://pkg.so/zh-hans/brew/prometheus/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, observability.
- [logcli](https://pkg.so/zh-hans/brew/logcli/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, observability.
- [mimirtool](https://pkg.so/zh-hans/brew/mimirtool/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, observability.
- [newrelic-infra-agent](https://pkg.so/zh-hans/brew/newrelic-infra-agent/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, observability.
- [linkerd](https://pkg.so/zh-hans/brew/linkerd/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, observability.
- [grizzly](https://pkg.so/zh-hans/brew/grizzly/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, observability.
- [sloth-cli](https://pkg.so/zh-hans/brew/sloth-cli/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, observability.
- [kubespy](https://pkg.so/zh-hans/brew/kubespy/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, observability.
- [apache-brooklyn-cli](https://pkg.so/zh-hans/brew/apache-brooklyn-cli/) - Local package facts share a topical domain. Shared terms: apache, cli, cloud, cloud-infrastructure, command-line.

## Combined YAML source

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