# Installer swagger-codegen avec Homebrew, MacPorts, Nix

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de swagger-codegen pour les workflows d'agents IA.

## installation

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

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

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

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

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

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

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

## Faits du paquet

- **Clé du paquet:** brew:swagger-codegen
- **Gestionnaire de paquets:** Homebrew
- **Version:** 3.0.81
- **Résumé source:** Generate clients, server stubs, and docs from an OpenAPI spec
- **Page d'accueil:** <https://swagger.io/tools/swagger-codegen/>
- **Dépôt:** <https://github.com/swagger-api/swagger-codegen>
- **Dernière mise à jour:** 2026-05-18T14:26:15Z
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- swagger-codegen (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 3.0.81
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

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

### Sources

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


## Notes de sécurité

Aucun manifest local de gestion des secrets correspondant n'a été trouvé pour swagger-codegen. Les métadonnées de paquet Nucleus restent publiées ici afin que la couverture future dispose d'une URL stable.


## Autres enregistrements de gestionnaires de paquets

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


## Sources

- 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
