# swagger-codegen を Homebrew, MacPorts, Nix でインストール

swagger-codegen のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:swagger-codegen
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install swagger-codegen
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install swagger-codegen
```

  証拠: MacPorts ports tree: devel/swagger-codegen/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#swagger-codegen
```

  証拠: nixpkgs package indexes: pkgs/by-name/sw/swagger-codegen/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:swagger-codegen
- **パッケージマネージャ:** Homebrew
- **バージョン:** 3.0.81
- **ソース概要:** Generate clients, server stubs, and docs from an OpenAPI spec
- **ホームページ:** <https://swagger.io/tools/swagger-codegen/>
- **リポジトリ:** <https://github.com/swagger-api/swagger-codegen>
- **最終更新:** 2026-05-18T14:26:15Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- swagger-codegen (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 3.0.81
## プロジェクトの歴史と使われ方

Swagger Codegen is the Swagger/OpenAPI project's command-line code generator for API clients, server stubs, and documentation. The Homebrew `swagger-codegen` formula tracks the modern 3.x line, which adds OpenAPI 3.0 support while sharing the long-running upstream repository.

### プロジェクトの歴史

The swagger-api/swagger-codegen repository was created on GitHub in July 2011. Official Swagger documentation describes Swagger Codegen as a project that generates API client libraries, server stubs, and documentation automatically from an OpenAPI Description.

### 採用の歴史

Swagger Codegen became widely packaged because it is a single Java CLI that can generate code for many languages and frameworks. The official README lists client generators for languages including Java, Go, Python, Ruby, PHP, Swift, TypeScript, and many others, plus server stubs and documentation outputs.

### 使われ方

The common CLI pattern is to run the codegen jar with `generate`, pass an input spec with `-i`, select a target language with `-l`, and choose an output directory with `-o`. Official docs also describe querying generator capabilities and integrating generation into Maven, Gradle, Docker, GitHub, and CI workflows.

### パッケージ好きにとっての重要性

For package-manager users, Swagger Codegen is important because it converts API descriptions into language-specific source trees without requiring each language ecosystem to maintain its own generator. It is also a classic example of a large Java CLI distributed through system package managers, Maven artifacts, Docker, and release jars.

### タイムライン

- 2011: GitHub repository created.
- 2014: v2.0.13 appears in GitHub releases.
- 2018: v3.0.0 released with the 3.x line.
- 2025: Official docs list 3.0.71 as a stable 3.x release with OpenAPI 3.0 compatibility.
- 2026: GitHub releases list later 3.x releases during research.

### Related projects

- The official docs tie Swagger Codegen to the OpenAPI Specification and Swagger tooling. The README also points to Swagger online generators, a validator, and workflow integrations.

### ソース

- <https://api.github.com/repos/swagger-api/swagger-codegen>
- <https://api.github.com/repos/swagger-api/swagger-codegen/releases>
- <https://github.com/swagger-api/swagger-codegen#readme>
- <https://swagger.io/docs/open-source-tools/swagger-codegen/codegen-v3/about>


## セキュリティノート

swagger-codegen に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。


## 他のパッケージマネージャ記録

- Nix - swagger-codegen: normalized package name match | nixpkgs package indexes: pkgs/by-name/sw/swagger-codegen/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - swagger-codegen: normalized package name match | MacPorts ports tree: devel/swagger-codegen/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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


## ソース

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