# swagger-codegen mit Homebrew, MacPorts, Nix installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für swagger-codegen in AI-Agent-Workflows.

## Installation

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

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

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

  Evidenz: local Homebrew formula metadata

- MacPorts (94%):

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

  Evidenz: 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
```

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

## Paketfakten

- **Paketschlüssel:** brew:swagger-codegen
- **Paketmanager:** Homebrew
- **Version:** 3.0.81
- **Quellzusammenfassung:** Generate clients, server stubs, and docs from an OpenAPI spec
- **Homepage:** <https://swagger.io/tools/swagger-codegen/>
- **Repository:** <https://github.com/swagger-api/swagger-codegen>
- **Zuletzt aktualisiert:** 2026-05-18T14:26:15Z
- **Generiert:** 2026-08-03T19:37:03+00:00

## Executables

- swagger-codegen (Alias)

## Installationsverhalten

- Bottle: nicht verfügbar

## Version und Aktualität

- Seite generiert: 2026-08-03
- Manager-Version: 3.0.81
## Projektgeschichte und Nutzung

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.

### Projektgeschichte

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.

### Adoptionsgeschichte

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.

### Wie es verwendet wird

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.

### Warum Paket-Nerds sich dafür interessieren

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.

### Zeitleiste

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

### Quellen

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


## Sicherheitshinweise

Für swagger-codegen wurde kein passendes lokales Secret-Handling-Manifest gefunden. Nucleus-Paketmetadaten bleiben hier veröffentlicht, damit künftige Abdeckung eine stabile Paket-URL hat.


## Andere Paketmanager-Einträge

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


## Quellen

- 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
