# 使用 Homebrew 安装 swctl

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install swctl
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:swctl
- **软件包管理器:** Homebrew
- **版本:** 0.14.0
- **来源摘要:** Apache SkyWalking CLI (Command-line Interface)
- **主页:** <https://skywalking.apache.org/>
- **仓库:** <https://github.com/apache/skywalking-cli>
- **最后更新:** 2026-07-26T04:03:48+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- swctl (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 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


## 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
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
