swagger-codegen@2 for Mac
Generate clients, server stubs, and docs from an OpenAPI spec
swagger-codegen@2 — overview
Swagger Codegen
This is the Swagger Codegen project, which allows generation of API client libraries (SDK generation), server stubs and documentation automatically given an OpenAPI Spec.
? If you would like to contribute, please refer to guidelines and a list of open tasks.?
? For more information, please refer to the Wiki page and FAQ ?
⚠️ If the OpenAPI Description or Swagger file is obtained from an untrusted source, please make sure you've reviewed the artefact before using Swagger Codegen to generate the API client, server stub or documentation as code injection may occur. ⚠️
Versioning ⚠️ this document refers to version 2.X, check here for 3.X.
Both 2.X and 3.X version lines of Swagger Codegen are available and are independently maintained.
NOTES: Versions 2.X (io.swagger) and 3.X (io.swagger.codegen.v3) have different group ids. OpenAPI 3.0.X is supported from the 3.X version only.
For full versioning information, please refer to the versioning documentation.
Supported Languages and Frameworks
Currently, the following languages/frameworks are supported: API clients: ActionScript, Ada, Apex, Bash, C# (.net 2.0, 3.5 or later), C++ (cpprest, Qt5, Tizen), Clojure, Dart, Elixir, Elm, Eiffel, Erlang, Go, Groovy, Haskell (http-client, Servant), Java (Jersey1.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x, Feign, RestTemplate, RESTEasy, Vertx, Google API Client Library for Java, Rest-assured), Kotlin, Lua, Node.js (ES5, ES6, AngularJS with Google Closure Compiler annotations) Objective-C, Perl, PHP, PowerShell, Python, R, Ruby, Rust (rust, rust-server), Scala (akka, http4s, swagger-async-httpclient), Swift (2.x, 3.x, 4.x, 5.x), Typescript (Angular1.x, Angular2.x, Fetch, jQuery, Node) Server stubs: Ada, C# (ASP.NET Core, NancyFx), C++ (Pistache, Restbed), Erlang, Go, Haskell (Servant), Java (MSF4J, Spring, Undertow, JAX-RS: CDI, CXF, Inflector, RestEasy, Play Framework, PKMST), Kotlin, PHP (Lumen, Slim, Silex, Symfony, Zend Expressive), Python (Flask), NodeJS, Ruby (Sinatra, Rails5), Rust (rust-server), Scala (Finch, Lagom, Scalatra) API documentation generators: HTML, Confluence Wiki Configuration files: Apache2 Others: JMeter
Check out OpenAPI-Spec for additional information about the OpenAPI project.
Versioning Compatibility Getting Started Generators To generate a sample client library Generating libraries from your server Validating your OpenAPI Spec Generating dynamic html api documentation Generating static html api documentation Workflow Integration Online Generators Contribution Swagger Codegen Core Team
Compatibility
The OpenAPI Specification has undergone 3 revisions since initial creation in 2010. The current stable versions of Swagger Codegen project have the following compatibilities with the OpenAPI Specification:
Swagger Codegen Version | Release Date | Swagger / OpenAPI Spec compatibility | Notes -------------------------- |--------------| -------------------------- | -----
Details
根据 OpenAPI 规范生成客户端、服务器存根和文档
How to install swagger-codegen@2
- Open Terminal (press ⌘ + Space and type “Terminal”).
- If Homebrew is not installed yet, run the command below first.
- Run this command:
Latest 10 releases
Last updated 2026-11-04; current version v3.0.85, with the latest 10 releases listed.
| Version | Released | Type | Size | macOS | Windows | Linux |
|---|---|---|---|---|---|---|
| v3.0.85 | 2026-11-04 | Stable | — | — | — | — |
| v3.0.84 | 2026-11-02 | Stable | — | — | — | — |
| v3.0.83 | 2026-10-26 | Stable | — | — | — | — |
| v2.4.53 | 2026-10-22 | Stable | — | — | — | — |
| v3.0.82 | 2026-08-04 | Stable | — | — | — | — |
| v3.0.81 | 2026-05-18 | Stable | — | — | — | — |
| v3.0.80 | 2026-05-14 | Stable | — | — | — | — |
| v3.0.79 | 2026-04-22 | Stable | — | — | — | — |
| v2.4.52 | 2026-04-15 | Stable | — | — | — | — |
| v2.4.51 | 2026-03-12 | Stable | — | — | — | — |
Data from GitHub Releases; stable releases first, each group sorted newest first.
Compared with similar apps
Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.
| App | Version | License | Architecture | 30-day installs |
|---|---|---|---|---|
| swagger-codegen@2 | v3.0.85 | Apache-2.0 | CLI | 18 |
| millet | v0.15.3 | Apache-2.0 OR MIT | CLI | 21 |
| dict | 1.13.3 | GPL-2.0-or-later | CLI | 18 |
| ltex-ls-plus | 18.7.0 | MPL-2.0 | CLI | 18 |
Similar apps: Command-line Tools
millet
A language server for Standard ML (SML).dict
dict is a command-line dictionary lookup tool that follows the Dictionary Server Protocol…ltex-ls-plus
LTeX+ Language Server: maintained fork of LTeX Language Servercodebook-lsp
CODEBOOK An unholy spell checker for code. Install · Report Bug · Request Feature · Zed…openapi-tui
Terminal UI to list, browse and run APIs defined with OpenAPI v3.0 and v3.1 spec.openssl@4
Cryptography and SSL/TLS ToolkitCategories: Command-line Tools