# 使用 Homebrew 安装 wsk

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

## 安装

```sh
sudo av install brew:wsk
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install wsk
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:wsk
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/wsk>
- **版本:** 1.2.0
- **来源摘要:** OpenWhisk Command-Line Interface (CLI)
- **主页:** <https://openwhisk.apache.org/>
- **仓库:** <https://github.com/apache/openwhisk-cli>
- **上游文档:** <https://openwhisk.apache.org/>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/apache/openwhisk-cli/archive/refs/tags/1.2.0.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- wsk (cli)
- wsk (别名)

## 构建依赖

- go
- go-bindata

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.2.0
- 本地数据: OK
- 上游仓库: https://github.com/apache/openwhisk-cli
- 检测到的最新版本: 1.2.0 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

`wsk` is the command-line interface for Apache OpenWhisk, the open-source serverless platform that executes functions in response to events. The CLI is the user's main shell entry point for creating, invoking, listing, and managing OpenWhisk entities against a local deployment, Apache deployment, or compatible hosted service.

Historically, `wsk` sits inside OpenWhisk's larger path from IBM Research project to Apache serverless platform. The CLI matters because serverless systems are operationally remote by nature: without a command-line client and configuration file, developers cannot conveniently target an API host, authenticate, create actions, wire triggers, or debug requests.

### 项目历史

OpenWhisk began as an IBM Research initiative in February 2015, according to Rodric Rabbah, who describes creating the project and leading its architecture, tooling, and runtimes. It was publicly announced in February 2016 at IBM InterConnect, launched on Bluemix and GitHub under the Apache License 2.0, and reached general availability on IBM Bluemix in December 2016 while also entering the Apache Software Foundation incubator.

The `apache/openwhisk-cli` repository was created on 3 April 2017, separating the Go-based command-line client into its own Apache repository. The GitHub README describes it as a unified tool for interacting with OpenWhisk services and documents released binaries for Linux, macOS, and Windows, plus source builds using Go and Gradle.

OpenWhisk's platform story expanded through IBM Cloud Functions, Adobe I/O Runtime, Red Hat involvement, and other deployments. Adobe's Runtime documentation states that Adobe I/O Runtime is based on Apache OpenWhisk and uses the OpenWhisk architecture to provide function-as-a-service, showing how `wsk`-style interaction fits into larger hosted serverless offerings even when vendors wrap or supplement the tooling.

### 采用历史

OpenWhisk adoption has been strongest among cloud/serverless platforms and self-hosted open-source serverless users rather than as a general-purpose programming language tool. The Apache homepage describes OpenWhisk as deployable locally or on cloud container infrastructure, with Kubernetes and Helm emphasized for developer and operator convenience.

The CLI's adoption follows the platform. Apache documentation names the OpenWhisk CLI as one of the key tools alongside the REST API, deployment utility, and language clients, and explicitly documents Homebrew installation for Linux or macOS. That makes `brew:wsk` the package-manager route for users who need the stock Apache client rather than a vendor-specific wrapper.

### 使用方式

Before use, the CLI is configured with an API host and authentication key. Apache documentation shows `wsk property set --apihost API_HOST --auth AUTH_KEY --namespace guest`, and states that the CLI stores properties in `~/.wskprops` by default unless `WSK_CONFIG_FILE` points elsewhere.

Once configured, developers use `wsk` to manage OpenWhisk actions, triggers, rules, packages, APIs, and deployment helpers. The Apache homepage frames the workflow as writing functions in supported languages, targeting an OpenWhisk instance with the CLI, and running actions in response to direct invocations, HTTP requests, schedules, or external events.

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

`wsk` is package-nerd significant because it is the portable client binary for an Apache serverless control plane. Package managers turn the platform's API into a normal local tool that can be installed in shells, CI images, tutorials, and operator workstations.

The CLI also captures a historical moment in serverless tooling: early function-as-a-service systems needed standalone clients that could point at hosted cloud endpoints or local developer deployments. `wsk` remains the recognizable command name for Apache OpenWhisk even when surrounding products such as IBM Cloud Functions or Adobe I/O Runtime add their own layers.

### 时间线

- 2015-02: OpenWhisk begins as an IBM Research initiative.
- 2016-02: OpenWhisk is publicly announced at IBM InterConnect and launched on Bluemix and GitHub.
- 2016-12: OpenWhisk reaches general availability on IBM Bluemix and is accepted into the Apache Software Foundation incubator.
- 2017-04-03: The `apache/openwhisk-cli` repository is created.
- 2018-08-18: `openwhisk-cli` publishes 0.9.0-incubating on GitHub.
- 2019-09-23: `openwhisk-cli` publishes 1.0.0.
- 2021-04-01: `openwhisk-cli` publishes 1.2.0.

### Related projects

- Apache OpenWhisk is the serverless platform controlled by `wsk`.
- openwhisk-wskdeploy provides deployment tooling, with functionality also embedded as `wsk deploy` in the CLI documentation.
- IBM Cloud Functions and Adobe I/O Runtime are hosted offerings or runtimes associated with OpenWhisk's adoption history.
- Kubernetes, OpenShift, Docker Compose, and Helm are common deployment technologies in the OpenWhisk ecosystem.

### 来源

- <https://api.github.com/repos/apache/openwhisk-cli>
- <https://api.github.com/repos/apache/openwhisk-cli/releases>
- <https://developer.adobe.com/app-builder/docs/get_started/runtime_getting_started/how-runtime-works>
- <https://github.com/apache/openwhisk-cli>
- <https://openwhisk.apache.org/>
- <https://openwhisk.apache.org/documentation.html>
- <https://rabbah.io/openwhisk/>


## 安全说明

narrow executable package without higher-risk signals.

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


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.wskprops

## Credential files

- Unix: ~/.wskprops
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** wsk
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** 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.
- [go-bindata](https://pkg.so/zh-hans/brew/go-bindata/) - Build dependency declared by Homebrew.
- [wskdeploy](https://pkg.so/zh-hans/brew/wskdeploy/) - Shares the same upstream homepage.
- [aws-sam-cli](https://pkg.so/zh-hans/brew/aws-sam-cli/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, serverless.
- [vercel](https://pkg.so/zh-hans/brew/vercel/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, serverless.
- [aws-amplify](https://pkg.so/zh-hans/brew/aws-amplify/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, serverless.
- [fn](https://pkg.so/zh-hans/brew/fn/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, serverless.
- [kn](https://pkg.so/zh-hans/brew/kn/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, serverless.
- [awscli](https://pkg.so/zh-hans/brew/awscli/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure.
- [kubernetes-cli](https://pkg.so/zh-hans/brew/kubernetes-cli/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure.
- [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/wsk.yml](https://github.com/mxcl/pkgdb/blob/main/combined/wsk.yml)


## 来源

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