# 使用 Homebrew, Nix 安装 asyncapi

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

## 安装

```sh
sudo av install brew:asyncapi
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install asyncapi
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#asyncapi
```

  证据: nixpkgs package indexes: pkgs/by-name/as/asyncapi/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:asyncapi
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/asyncapi>
- **版本:** 6.0.2
- **来源摘要:** All in one CLI for all AsyncAPI tools
- **主页:** <https://www.asyncapi.com/tools/cli>
- **仓库:** <https://github.com/asyncapi/cli>
- **上游文档:** <https://www.asyncapi.com/docs/tools/cli>
- **许可证:** Apache-2.0
- **源码归档:** <https://registry.npmjs.org/@asyncapi/cli/-/cli-6.0.2.tgz>
- **最后更新:** 2026-06-15T10:20:10-04:00
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- asyncapi (cli)
- asyncapi (别名)

## 依赖

- node

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 6.0.2
- 管理器更新时间: 2026-06-15
- 本地数据: OK
- 上游仓库: https://www.asyncapi.com/tools/cli
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

AsyncAPI CLI is the command-line front end for working with AsyncAPI documents: validating, bundling, converting, formatting, diffing, generating clients/models/templates, launching previews and Studio, and managing document contexts. It is the package-manager face of the wider AsyncAPI Initiative.

### 项目历史

The CLI repository began in 2021 with an explicit design phase and grew into an oclif-based Node.js command suite. Its README describes it as a CLI for AsyncAPI files and points contributors to generated usage docs, architecture docs, and command patterns such as `verb + noun` and `namespace + noun + verb`.

The 5.x and 6.x lines show the project consolidating around document operations and generator integration. Version 6.0.0 removed Postman-to-AsyncAPI conversion support because the dependency chain had become unmaintained and difficult to support, which is a good example of the CLI being maintained as a practical tool rather than only an aggregation point.

### 采用历史

AsyncAPI CLI is shipped through npm, Homebrew, Docker, macOS pkg files, Windows installers, Chocolatey, Debian packages, and other package channels documented by the project. The supplied Homebrew and Nix package metadata shows it has crossed from the JavaScript ecosystem into system package-manager catalogs.

Its adoption follows the growth of AsyncAPI as a specification for event-driven and asynchronous APIs: teams that already keep OpenAPI-like documents in repositories can add the CLI to CI, local validation, code-generation, documentation-preview, and schema-maintenance workflows.

### 使用方式

Common package-manager usage is `asyncapi validate`, `asyncapi bundle`, `asyncapi diff`, `asyncapi generate`, `asyncapi start preview`, and `asyncapi start studio`. The CLI also has context commands for giving short names to AsyncAPI document paths and auth commands for resolving protected remote references.

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

AsyncAPI CLI is interesting because it is both a Node package and a cross-platform native-feeling CLI artifact. Package maintainers have to care about npm global installs, generated oclif command docs, shell completion, Docker images, OS installers, Homebrew bottles, and the fast-moving AsyncAPI toolchain behind the single `asyncapi` executable.

### 时间线

- 2021: Initial CLI repository commits and design notes.
- 2026: v6.0.0 removed Postman conversion support after dependency-maintenance issues.
- 2026: v6.0.2 patched request-body validation behavior.

### Related projects

- Related AsyncAPI projects include the AsyncAPI specification, generator, converter-js, Studio/preview tooling, templates, parser tooling, and the broader event-driven API documentation ecosystem.

### 来源

- Official git metadata from https://github.com/asyncapi/cli.git
- <https://github.com/asyncapi/cli#readme>
- <https://github.com/asyncapi/cli/blob/master/docs/installation.md>
- <https://github.com/asyncapi/cli/blob/master/docs/usage.md>
- <https://github.com/asyncapi/cli/releases.atom>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


## 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: .asyncapi-cli, ~/.asyncapi-cli
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** asyncapi
- **Version Scheme:** 1
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- Nix - asyncapi: normalized package name match | nixpkgs package indexes: pkgs/by-name/as/asyncapi/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [algolia](https://www.automicvault.com/zh-hans/pkg/brew/algolia/) - Shares av.db curated category or tags: api, cli, developer-tools.
- [apfel](https://www.automicvault.com/zh-hans/pkg/brew/apfel/) - Shares av.db curated category or tags: api, cli, developer-tools.
- [api-linter](https://www.automicvault.com/zh-hans/pkg/brew/api-linter/) - Shares av.db curated category or tags: api, cli, developer-tools.
- [apibuilder-cli](https://www.automicvault.com/zh-hans/pkg/brew/apibuilder-cli/) - Shares av.db curated category or tags: api, cli, developer-tools.
- [apigeecli](https://www.automicvault.com/zh-hans/pkg/brew/apigeecli/) - Shares av.db curated category or tags: api, cli, developer-tools.
- [atac](https://www.automicvault.com/zh-hans/pkg/brew/atac/) - Shares av.db curated category or tags: api, cli, developer-tools.
- [autocode](https://www.automicvault.com/zh-hans/pkg/brew/autocode/) - Shares av.db curated category or tags: api, cli, developer-tools.
- [autorest](https://www.automicvault.com/zh-hans/pkg/brew/autorest/) - Shares av.db curated category or tags: api, cli, developer-tools.
- [redocly-cli](https://www.automicvault.com/zh-hans/pkg/brew/redocly-cli/) - Both packages touch the same language runtime or ecosystem. Shared terms: all, api, cli, developer, developer-tools.
- [spectral-cli](https://www.automicvault.com/zh-hans/pkg/brew/spectral-cli/) - Both packages touch the same language runtime or ecosystem. Shared terms: api, asyncapi, cli, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/asyncapi.yml](https://github.com/automic-vault/db/blob/main/combined/asyncapi.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
- external package-manager database matches
- cross-ecosystem install command graph
