Page Contents
Important:
Before running this generator, you must create an application using the application generator.
Then you must run the command from the root directory of the application.
Synopsis
Exports a Swagger API definition for a LoopBack application.
lb export-api-def [options]
With IBM API Connect v5 developer toolkit:
apic loopback:export-api-def [options]
With legacy StrongLoop tools:
slc loopback:export-api-def [options]
Options
-o, --output
- Name and full path to the output file. By default, the generator displays the API definition to the screen (stdout). Use this option to save the definition to a file instead.
--json
- By default, the generator exports the API definition in YAML format. Use this option to export in JSON format instead; or specify a file with a
.json
format.
Standard options
-h, --help
- Print the generator’s options and usage.
--skip-cache
- Do not remember prompt answers. Default is false.
--skip-install
- Do not automatically install dependencies. Default is false.