# 使用 Homebrew 安装 fern-api

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

## 安装

```sh
sudo av install brew:fern-api
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install fern-api
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:fern-api
- **软件包管理器:** Homebrew
- **版本:** 5.89.0
- **来源摘要:** Stripe-level SDKs and Docs for your API
- **主页:** <https://buildwithfern.com/>
- **最后更新:** 2026-07-31T07:13:56Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- fern (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 5.89.0
## 项目历史与用法

Fern is an API tooling platform and CLI that turns API definitions into SDKs and documentation. The repository README describes support for OpenAPI, AsyncAPI, Protobuf, and OpenRPC, with generated SDKs in languages such as TypeScript, Python, Java, Go, Ruby, PHP, C#, Swift, and Rust.

### 项目历史

The public Fern repository was created in April 2022, and the `fern-api` npm package was also created in April 2022. Early package history shows rapid 0.0.x CLI publication, while the repository later grew into a monorepo containing CLI code, generators, documentation assets, and platform tooling.

By 2026 the package had moved into the 5.x release line, with Homebrew packaging `fern-api` and npm publishing frequent CLI releases. The README frames Fern as a docs-and-SDK workflow rather than only a code generator: users initialize a `fern/` directory, configure generators, and run the CLI to produce SDKs and docs.

### 采用历史

Fern's adoption story is tied to API-first developer experience teams that want SDKs and documentation from one source of truth. The README points to public documentation sites built with Fern, including ElevenLabs, LaunchDarkly, and Hume AI, which supports a narrative of production use beyond toy examples.

The npm package is the primary CLI distribution channel, while Homebrew gives macOS and Linux users a package-manager-native install path. That combination fits the modern API-tooling pattern where Node-based CLIs are also wrapped for Homebrew users who prefer OS-level package workflows.

### 使用方式

Typical use starts with `fern init --openapi`, which creates a `fern/` directory containing `fern.config.json`, `generators.yml`, and API definition files. Users then run commands such as `fern check`, `fern add`, and `fern generate`; local generation can run through Docker with `fern generate --local`.

Fern is used when an API team wants generated client SDKs, reference documentation, hosted docs, and related developer-experience features to track the API specification. Its package history matters because the CLI is the local entry point to a larger hosted and generator ecosystem.

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

For package maintainers, Fern is a fast-moving Node-distributed CLI whose Homebrew formula follows npm release cadence. That makes it part of the modern class of API development tools where the package is small from the user's perspective but fronts a larger cloud and generator platform.

Fern is also notable because its CLI repository documents both generated artifact workflows and the project's own reproducible development setup through DevBox, reflecting the packaging concerns of a polyglot generator stack.

### 时间线

- 2022: Public GitHub repository and npm package created.
- 2023: Repository README identifies Fern as a Y Combinator 2023 startup.
- 2026: npm and Homebrew package metadata show the CLI in the 5.x release line.

### Related projects

- Fern belongs to the API specification and SDK generation ecosystem alongside OpenAPI, AsyncAPI, Protobuf, OpenRPC, AWS Smithy, Palantir Conjure, and Stripe-style developer documentation workflows.

### 来源

- <https://github.com/fern-api/fern>
- <https://github.com/fern-api/fern/blob/main/README.md>
- <https://api.github.com/repos/fern-api/fern>
- <https://registry.npmjs.org/fern-api>
- <https://formulae.brew.sh/formula/fern-api>


## 安全说明

没有找到 fern-api 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## 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: fern/fern.config.json, fern/generators.yml

## Combined YAML source

View the package source record on GitHub. [combined/fern-api.yml](https://github.com/mxcl/pkgdb/blob/main/combined/fern-api.yml)


## 来源

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