Page Contents


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]


-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.
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.
Do not remember prompt answers. Default is false.
Do not automatically install dependencies. Default is false.
Tags: tools