AptLynx

Command-line tool

swagger-codegen

brew/swagger-codegen

Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev

Generate clients, server stubs, and docs from an OpenAPI spec

At a glance

Type
Command-line tool
Install on
macOS, Linux
Last checked
25 Oct 2026, 21:09 UTC

Install it

macOS

brew install swagger-codegen

Linux

brew install swagger-codegen

Generate documentation and code from an OpenAPI/swagger file

swagger-codegen generate -i swagger_file -l language

Generate Java code using the library retrofit2 and the option useRxJava2

swagger-codegen generate -i http://petstore.swagger.io/v2/swagger.json -l java --library retrofit2 -DuseRxJava2=true

List available languages

swagger-codegen langs

Browse

Related command-line tools

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents