LoopBack 3 has reached end of life. We are no longer accepting pull requests or providing
support for community users. The only exception is fixes for critical bugs and security
vulnerabilities provided as part of support for IBM API Connect customers.
We urge all LoopBack 3 users to migrate their applications to LoopBack 4 as soon as possible.
Learn more about
LoopBack's long term support policy.
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.