This article summarizes LoopBack CLI tool commands.

Use command-line tools (either the LoopBack CLI lb, IBM API Connect developer toolkit apic or StrongLoop legacy tool slc) to create and scaffold applications. Scaffolding simply means generating the basic code for your application. You can then extend and modify the code as desired for your specific needs.

The command-line tools provide an Application generator to create a new LoopBack application and a number of sub-generators to scaffold an application, as described in the following table.

The commands are listed below roughly in the order that you would use them.


Commands See Description
slc loopback
apic loopback
Application generator Create a new LoopBack application.
lb bluemix
apic bluemix
Bluemix configuration generator Add Bluemix deployment artifacts to a LoopBack application.
lb datasource
slc loopback:datasource
apic create --type datasource
Data source generator Add a new data source to a LoopBack application.
lb model
slc loopback:model
apic create --type model
Model generator Add a new model to a LoopBack application.
lb property
slc loopback:property
apic loopback:property
Property generator Add a new property to an existing model.
lb acl
slc loopback:acl
apic loopback:acl
ACL generator Add a new access control list (ACL) entry to the LoopBack application.
lb relation
slc loopback:relation
apic loopback:relation
Relation generator Add a new model relationship.
lb remote-method
slc loopback:remote-method
apic loopback:remote-method
Remote method generator Add a new remote method..
lb middleware
slc loopback:middleware
apic loopback:middleware
Middleware generator Add a new middleware configuration.
lb boot-script<
slc loopback:boot-script
apic loopback:boot-script
Boot script generator Add a new boot scripts.
lb export-api-def
slc loopback:export-api-def
apic loopback:export-api-def
API definition generator Export Swagger API definition.
lb swagger
slc loopback:swagger
apic loopback:swagger
Swagger generator Generates a fully-functional application that provides APIs conforming to the Swagger 2.0 specification.
apic loopback:refresh Refresh definitions command Generate a product and an OpenAPI (Swagger) definition
lb soap SOAP generator Generate application artifacts based on WSDL file.
Tags: reference