Redirecting to http://loopback.io/doc/en/lb2/Command-line-tools.html ...
slc loopback command 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.
slc loopback command provides 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 roughly in the order that you would use them.
|Application generator||Create a new LoopBack application.|
|Data source generator||Add a new data source to a LoopBack application|
|Model generator||Add a new model to a LoopBack application.|
|Property generator||Add a new property to an existing model.|
|ACL generator||Add a new access control list (ACL) entry to the LoopBack application.|
|Relation generator||Add a new model relationship.|
|Remote method generator||Add a new remote method.|
|Middleware generator||Add a new middleware configuration.|
|Boot script generator||Add a new boot scripts.|
|API definition generator||Export Swagger API definition.|
|Swagger generator||Generates a fully-functional application that provides the APIs conforming to the Swagger 2.0 specification.|
slc loopbackuses Yeoman. If you are already using Yeoman and are comfortable with it, you can install the LoopBack generator directly with
npm install -g generator-loopback.
Then everywhere the documentation says to use
slc loopback just use
yo loopback instead. For example, to create a new model, use