Back to Loopback Next

Lb3 Lb4 Command Mappings

docs/site/migration/tables/lb3-lb4-command-mappings.html

4.0.0-alpha.11.2 KB
Original Source

{% include analytics.html %}

LB3 CommandsLB4 CommandsDescription
lb or lb applb4 or lb4 appCreate a new application
lb datasourcelb4 datasourceCreate a new datasource
lb modellb4 modelCreate a new model. In LB3, this would create the model, but you would automatically get all the model methods and remote methods. In LB4, this command only creates the model; you must also create a repository to handle the CRUD operations of your model, and you must create a controller to define your model's REST API endpoints. Alternatively, you can use lb4 rest-crud to create a configuration file that allows you to avoid having to create a repository and controller.
lb relationlb4 relationCreate a relation between two models
lb swaggerlb4 openapiIn LB3, create a fully functioning application using an API defined in the Swagger 2.0 specification. In LB4, create a fully functioning application using an API defined in either the Swagger 2.0 or the OpenAPI 3.0 specification.