# Download current stable 2.x.x branch (Swagger and OpenAPI version 2)
wget https://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.4.15/swagger-codegen-cli-2.4.15.jar -O swagger-codegen-cli.jar
java -jar swagger-codegen-cli.jar help
# Download current stable 3.x.x branch (OpenAPI version 3)
wget https://repo1.maven.org/maven2/io/swagger/codegen/v3/swagger-codegen-cli/3.0.21/swagger-codegen-cli-3.0.21.jar -O swagger-codegen-cli.jar
java -jar swagger-codegen-cli.jar --help
# 실제 실행
java -jar swagger-codegen-cli.jar generate -i https://petstore.swagger.io/v2/swagger.json -l html -o /tmp/test/
# 지원 언어 목록 (-l)
java -jar swagger-codegen-cli.jar langs