# 使用 Homebrew 安装 autorest

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

## 安装

```sh
sudo av install brew:autorest
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install autorest
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:autorest
- **软件包管理器:** Homebrew
- **版本:** 3.8.0
- **来源摘要:** Swagger (OpenAPI) Specification code generator
- **主页:** <https://github.com/Azure/autorest>
- **最后更新:** 2026-07-17T13:51:08+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- autorest (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

AutoRest is Microsoft's OpenAPI/Swagger code generation tool for producing client libraries and SDKs, especially around Azure. It turns OpenAPI descriptions plus configuration files into generated code for languages such as C#, Java, Python, TypeScript, Go, PowerShell, and others.

### 项目历史

The Azure/autorest repository was created in February 2015. Official repository metadata describes it as an OpenAPI, formerly Swagger, specification code generator supporting multiple languages.

AutoRest evolved around a configuration-heavy model. The official docs emphasize command-line flags, YAML/JSON/Markdown configuration files, and literate readme.md files that combine human documentation with machine-readable generation settings.

### 采用历史

AutoRest adoption is strongly tied to Azure SDK generation and the azure-rest-api-specs repository. The official generation docs reference Azure SDK language repositories and management-plane generation, showing that AutoRest became infrastructure for large-scale, multi-language SDK production rather than just a standalone end-user CLI.

The Homebrew input lists only a Homebrew package for this batch, but official GitHub metadata shows thousands of stars and hundreds of forks for Azure/autorest, consistent with a prominent role in Azure developer tooling.

### 使用方式

Basic usage is autorest with an input OpenAPI file and a language flag, for example autorest --input-file=pets.json --python --output-folder=myFolder/. The preferred documented workflow moves those options into a configuration file and runs autorest readme.md.

AutoRest supports YAML, JSON, and Markdown configuration. Markdown literate configuration is especially important: docs say readme.md can serve as both project documentation and the storage for generation settings, using code blocks and the magic string that identifies AutoRest configuration.

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

AutoRest matters to package nerds because it is generator infrastructure at cloud-provider scale. It explains why SDK repositories can contain large generated surfaces, language-specific generator packages, pinned core versions, and readme.md files that are executable configuration rather than just documentation.

### 时间线

- 2015: Azure/autorest GitHub repository created.
- 2010s: AutoRest becomes associated with Swagger/OpenAPI-based Azure SDK generation.
- 2020s: AutoRest docs emphasize multi-language generation, literate configuration, and Azure management-plane workflows.

### Related projects

- azure-rest-api-specs supplies many OpenAPI inputs used with AutoRest.
- Azure SDK language repositories consume generated output from AutoRest workflows.
- OpenAPI/Swagger is the specification family AutoRest reads.

### 来源

- <https://api.github.com/repos/Azure/autorest>
- <https://github.com/Azure/autorest/blob/main/docs/generate/readme.md>
- <https://github.com/Azure/autorest/blob/main/docs/user/configuration.md>
- <https://github.com/Azure/autorest/blob/main/docs/user/literate-file-formats/configuration.md>


## 安全说明

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: ./readme.md, ./*.md, ./*.markdown, <config-file>.md, <config-file>.json, <config-file>.yaml

## Combined YAML source

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