# 使用 Homebrew 安装 create-api

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install create-api
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:create-api
- **软件包管理器:** Homebrew
- **版本:** 0.2.0
- **来源摘要:** Delightful code generator for OpenAPI specs
- **主页:** <https://github.com/CreateAPI/CreateAPI>
- **仓库:** <https://github.com/CreateAPI/CreateAPI>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- create-api (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Create API is a Swift command-line code generator that turns OpenAPI 3.0 specifications into Swift client code and Swift Package outputs.

### 项目历史

The CreateAPI/CreateAPI repository was created in late 2021 and shipped its initial pre-release in January 2022. The README describes the project as OpenAPI code generation for Swift, written in Swift, powered by OpenAPIKit.

The 0.1.0 release in August 2022 was a major maturation point: the changelog lists Homebrew publication, Swift Package Plugin support, expanded documentation and contribution guides, command-line config overrides, configurable generated package dependencies, custom data-type mappings, and parallel path generation.

### 采用历史

The official README documents installation through Mint, Homebrew, Swift Package Plugins, and make. It also lists open-source projects using Create API, including App Store Connect API, Swift SDK for Jellyfin, and Google Generative AI SDK.

### 使用方式

Users run create-api generate against a JSON or YAML OpenAPI schema, optionally passing output and configuration options. The default configuration path is .create-api.yaml, and the tool can generate complete Swift packages or individual components for integration into an existing Swift project.

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

Create API sits at the intersection of API schema packaging and Swift package generation. For package maintainers, its significance is that it can convert upstream OpenAPI descriptions into reproducible Swift source bundles suitable for normal SwiftPM workflows.

### 时间线

- 2021: CreateAPI/CreateAPI repository created.
- 2022: 0.0.1 initial pre-release published.
- 2022: 0.1.0 added Homebrew publication and Swift Package Plugin support.
- 2023: 0.2.0 release published.

### Related projects

- The README says Create API is powered by OpenAPIKit and lists downstream Swift SDKs generated or maintained with the tool.

### 来源

- <https://github.com/CreateAPI/CreateAPI>
- <https://github.com/CreateAPI/CreateAPI#readme>
- <https://github.com/CreateAPI/CreateAPI/blob/main/CHANGELOG.md>
- <https://github.com/CreateAPI/CreateAPI/releases/tag/0.0.1>
- <https://github.com/CreateAPI/CreateAPI/releases/tag/0.1.0>
- <https://github.com/CreateAPI/CreateAPI/releases/tag/0.2.0>


## 安全说明

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: .create-api.yaml, .create-api.json

## Combined YAML source

View the package source record on GitHub. [combined/create-api.yml](https://github.com/mxcl/pkgdb/blob/main/combined/create-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
