# 使用 Homebrew 安装 swagger2markup-cli

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

## 安装

```sh
sudo av install brew:swagger2markup-cli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install swagger2markup-cli
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:swagger2markup-cli
- **软件包管理器:** Homebrew
- **版本:** 1.3.3
- **来源摘要:** Swagger to AsciiDoc or Markdown converter
- **主页:** <https://github.com/Swagger2Markup/swagger2markup>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- swagger2markup (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Swagger2Markup CLI is the command-line packaging of Swagger2Markup, a converter that turns Swagger JSON or YAML into AsciiDoc or GitHub Flavored Markdown. It sits in the documentation toolchain rather than the code-generation toolchain.

### 项目历史

The Swagger2Markup/swagger2markup repository was created on GitHub in February 2015. Its README says the project was created by Robert Winkler to simplify generation of up-to-date REST API documentation by combining handwritten material with auto-generated output from Swagger descriptions.

### 采用历史

The README lists Maven and Gradle plugin integrations, a demo using Spring Boot, Springfox, and Spring REST Docs, and companies that used Swagger2Markup. GitHub releases show 1.x releases through v1.3.4, while the Homebrew formula packages the 1.3.3 CLI jar from Maven Central.

### 使用方式

Swagger2Markup converts local or remote Swagger JSON/YAML files into several AsciiDoc or Markdown documents. The Homebrew formula test invokes the packaged CLI as `swagger2markup convert -i test.yaml -f test`, producing an AsciiDoc output file.

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

The package is notable because it reflects an era when API documentation pipelines were assembled from small CLIs, static site generators, AsciiDoc processors, and Swagger files. For maintainers, it is also an example of packaging a single Java jar as a Unix command with a stable executable name.

### 时间线

- 2015: GitHub repository created.
- 2016: v1.0.x releases added configuration, extension, security-document, and inline-schema features.
- 2018: v1.3.3 released.
- 2022: v1.3.4 listed in GitHub releases.
- 2026: Homebrew formula marks the CLI package deprecated as unmaintained.

### Related projects

- The README relates Swagger2Markup to Swagger, swagger-parser, markup-document-builder, Asciidoctor, asciidoctorj, Springfox, Spring REST Docs, and its Maven and Gradle plugins.

### 来源

- <https://api.github.com/repos/Swagger2Markup/swagger2markup>
- <https://github.com/Swagger2Markup/swagger2markup#readme>
- <https://github.com/Swagger2Markup/swagger2markup/blob/master/RELEASENOTES.adoc>
- <https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/s/swagger2markup-cli.rb>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Combined YAML source

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


## 来源

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