macOS
brew install swagger-codegenlocal Homebrew formula metadata
sudo port install swagger-codegenMacPorts ports tree · devel/swagger-codegen/Portfile · source: api.github.com
brew
Generate clients, server stubs, and docs from an OpenAPI spec. Version 3.0.81 via Homebrew; verified 2026-05-18.
install
brew install swagger-codegenlocal Homebrew formula metadata
sudo port install swagger-codegenMacPorts ports tree · devel/swagger-codegen/Portfile · source: api.github.com
nix profile install nixpkgs#swagger-codegennixpkgs package indexes · pkgs/by-name/sw/swagger-codegen/package.nix · source: api.github.com
overview
Generate clients, server stubs, and docs from an OpenAPI spec
history
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.
security posture
No matching local secret-handling manifest was found for swagger-codegen. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
swagger-codegen | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/swagger-api/swagger-codegen
install metadata
| Package key | brew:swagger-codegen |
|---|---|
| Version | 3.0.81 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/swagger-codegen |
| Homepage | https://swagger.io/tools/swagger-codegen/ |
| Repository | https://github.com/swagger-api/swagger-codegen |
| Upstream docs | https://github.com/swagger-api/swagger-codegen#readme |
| License | Apache-2.0 |
| Source archive | https://github.com/swagger-api/swagger-codegen/archive/refs/tags/v3.0.81.tar.gz |
| Last updated | 2026-05-18T14:26:15Z |
| Pulse | updated |
| Dependencies | openjdk |
| Build dependencies | maven |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | swagger-codegen |
| Aliases |
|
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
swagger-codegen
nix profile install nixpkgs#swagger-codegenswagger-codegen
sudo port install swagger-codegensource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.