github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/docs/usage/swagger.md (about) 1 ``` 2 Usage: 3 swagger [OPTIONS] <command> 4 5 Swagger tries to support you as best as possible when building APIs. 6 7 It aims to represent the contract of your API with a language agnostic description of your application in json or yaml. 8 9 Application Options: 10 -q, --quiet silence logs 11 --log-output=LOG-FILE redirect logs to file 12 13 Help Options: 14 -h, --help Show this help message 15 16 Available commands: 17 diff diff swagger documents 18 expand expand $ref fields in a swagger spec 19 flatten flattens a swagger document 20 generate generate go code 21 init initialize a spec document 22 mixin merge swagger documents 23 serve serve spec and docs 24 validate validate the swagger document 25 version print the version 26 ```