Skip to content

lazyapi create file ​

Creates a minimal OpenAPI 3.0 template file.

Usage ​

bash
lazyapi create file [name] [servers...]

Arguments ​

ArgumentDescriptionDefault
nameFilename for the new specopenapi.yml
servers...One or more server URLs—

Examples ​

bash
# Create default openapi.yml
lazyapi create file

# Create named file
lazyapi create file my-api.yml

# Create with server URLs
lazyapi create file my-api.yml https://api.example.com http://localhost:3000

Output ​

yaml
openapi: 3.0.0
info:
  title: My API
  version: 0.0.1
servers:
  - url: https://api.example.com
  - url: http://localhost:3000
paths: {}

Released under the GPLv3 License.

/ search•[ ] prev/next•j/k scroll•h home•t theme•cli/create