# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/create-api>
- **版本:** 0.2.0
- **来源摘要:** Delightful code generator for OpenAPI specs
- **主页:** <https://github.com/CreateAPI/CreateAPI>
- **仓库:** <https://github.com/CreateAPI/CreateAPI>
- **许可证:** MIT
- **源码归档:** <https://github.com/CreateAPI/CreateAPI/archive/refs/tags/0.2.0.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- create-api (cli)
- create-api (别名)

## macOS 提供的库

- swift

## 安装行为

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

## 版本和新鲜度

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

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
## 源数据库详情

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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [sourcery](https://pkg.so/zh-hans/brew/sourcery/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, swift.
- [mockolo](https://pkg.so/zh-hans/brew/mockolo/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, swift.
- [openapi-generator](https://pkg.so/zh-hans/brew/openapi-generator/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, openapi.
- [rswift](https://pkg.so/zh-hans/brew/rswift/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, swift.
- [mogenerator](https://pkg.so/zh-hans/brew/mogenerator/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, swift.
- [configen](https://pkg.so/zh-hans/brew/configen/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, swift.
- [swift-protobuf](https://pkg.so/zh-hans/brew/swift-protobuf/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, swift.
- [mockery](https://pkg.so/zh-hans/brew/mockery/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools.
- [swagger-to-mock](https://pkg.so/zh-hans/npm/swagger-to-mock/) - Local package facts share a topical domain. Shared terms: api, cli, code, code-generation, developer.

## 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
- 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
