# 使用 Homebrew 安装 ask-cli

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

## 安装

```sh
sudo av install brew:ask-cli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ask-cli
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:ask-cli
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ask-cli>
- **版本:** 2.30.7
- **来源摘要:** CLI tool for Alexa Skill Kit
- **主页:** <https://developer.amazon.com/en-US/docs/alexa/smapi/ask-cli-intro.html>
- **仓库:** <https://github.com/alexa/ask-cli>
- **上游文档:** <https://developer.amazon.com/en-US/docs/alexa/smapi/ask-cli-command-reference.html>
- **许可证:** Apache-2.0
- **源码归档:** <https://registry.npmjs.org/ask-cli/-/ask-cli-2.30.7.tgz>
- **最后更新:** 2026-06-15T10:20:10-04:00
- **已生成:** 2026-07-25T07:20:51+00:00

## 可执行文件

- ask (cli)
- ask (别名)

## 依赖

- node

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-25
- 管理器版本: 2.30.7
- 管理器更新时间: 2026-06-15
- 本地数据: OK
- 上游仓库: https://developer.amazon.com/en-US/docs/alexa/smapi/ask-cli-intro.html
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

ASK CLI is Amazon's command-line interface for the Alexa Skills Kit. It creates, manages, tests, and deploys Alexa skills, wrapping both higher-level project workflows and lower-level Skill Management API operations.

### 项目历史

The alexa/ask-cli repository was created in December 2016 under the Alexa GitHub organization. Amazon's documentation presents it as the command-line front door for Alexa skill development, with commands for configuring credentials, creating projects from templates, deploying skill packages and Lambda code, and testing deployed skills.

The v2 line is the modern shape documented by Amazon: `ask configure` initializes Amazon developer and optional AWS credentials; `ask new` creates local skill projects; `ask deploy` publishes the skill manifest, interaction model, and backend resources; and `ask dialog` simulates conversations against a skill.

### 采用历史

ASK CLI's adoption is tied to the Alexa developer ecosystem rather than general-purpose command-line culture. It is distributed through npm and Homebrew, and the official README points users to npm global installation. Homebrew analytics show modest but continuing installs, consistent with a specialized vendor SDK tool.

Amazon's documentation also made ASK CLI the documented workflow for Alexa-hosted skills, AWS Lambda backed skills, and skill package management. That gave the tool real operational weight for developers who wanted reproducible Alexa deployments instead of only using the web console.

### 使用方式

A typical session starts with `ask configure`, which opens a browser login to an Amazon developer account and creates the `~/.ask/cli_config` profile file. Developers then run `ask new`, edit the generated skill-package, lambda, infrastructure, and ask-resources files, and deploy with `ask deploy`.

The command reference distinguishes high-level commands such as `new`, `deploy`, and `configure` from low-level `smapi` commands that expose more direct control over Skill Management API calls.

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

ASK CLI is a classic vendor CLI package: not glamorous, but important because it captures a cloud product's deployment contract in a versioned tool. For package nerds it is interesting as a Node-distributed CLI that is also bottled by Homebrew, and as an example of a platform SDK where local config, cloud credentials, generated project files, and API wrappers all meet.

### 时间线

- 2016: alexa/ask-cli repository created.
- 2023: v2.30.x releases published through GitHub releases.
- 2024: v2.30.7 published as the latest GitHub release observed in the official repository metadata.
- 2026: Homebrew API lists stable version 2.30.7.

### Related projects

- The README and docs connect ASK CLI to Alexa Skills Kit, SMAPI, AWS Lambda, AWS CloudFormation deployers, Alexa-hosted skills, and ASK SDKs.

### 来源

- <https://api.github.com/repos/alexa/ask-cli>
- <https://api.github.com/repos/alexa/ask-cli/releases>
- <https://developer.amazon.com/en-US/docs/alexa/smapi/ask-cli-command-reference.html>
- <https://developer.amazon.com/en-US/docs/alexa/smapi/ask-cli-intro.html>
- <https://developer.amazon.com/en-US/docs/alexa/smapi/manage-credentials-with-ask-cli.html>
- <https://developer.amazon.com/en-US/docs/alexa/smapi/quick-start-alexa-skills-kit-command-line-interface.html>
- <https://formulae.brew.sh/api/formula/ask-cli.json>
- <https://github.com/alexa/ask-cli#readme>


## 安全说明

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: ~/.ask/cli_config, ask-resources.json

## Credential files

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

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ask-cli
- **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://www.automicvault.com/zh-hans/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [node](https://www.automicvault.com/zh-hans/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [icp-cli](https://www.automicvault.com/zh-hans/pkg/brew/icp-cli/) - Shares av.db curated category or tags: cli, deployment, developer-tools.
- [netlify-cli](https://www.automicvault.com/zh-hans/pkg/brew/netlify-cli/) - Shares av.db curated category or tags: cli, deployment, developer-tools.
- [cartridge-cli](https://www.automicvault.com/zh-hans/pkg/brew/cartridge-cli/) - Shares av.db curated category or tags: cli, deployment, developer-tools.
- [cloudflare-wrangler](https://www.automicvault.com/zh-hans/pkg/brew/cloudflare-wrangler/) - Shares av.db curated category or tags: cli, deployment, developer-tools.
- [cloudformation-guard](https://www.automicvault.com/zh-hans/pkg/brew/cloudformation-guard/) - Shares av.db curated category or tags: aws, cli, developer-tools.
- [deployer](https://www.automicvault.com/zh-hans/pkg/brew/deployer/) - Shares av.db curated category or tags: cli, deployment, developer-tools.
- [docker-credential-helper-ecr](https://www.automicvault.com/zh-hans/pkg/brew/docker-credential-helper-ecr/) - Shares av.db curated category or tags: aws, cli, developer-tools.
- [doubledown](https://www.automicvault.com/zh-hans/pkg/brew/doubledown/) - Shares av.db curated category or tags: cli, deployment, developer-tools.
- [actions-languageserver](https://www.automicvault.com/zh-hans/pkg/brew/actions-languageserver/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, node.

## Combined YAML source

View the package source record on GitHub. [combined/ask-cli.yml](https://github.com/automic-vault/db/blob/main/combined/ask-cli.yml)


## 来源

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