space-lb2

messaging

space-node

This documentation is deprecated
Please see the new LoopBack documentation site.
Skip to end of metadata
Go to start of metadata

Redirecting to http://loopback.io/doc/en/lb2/Command-line-tools.html ...

LoopBack provides two powerful tools for creating and working with applications:

The slc loopback command-line tool

Use the 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.

The 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.

 

Command

 

SeeDescription
slc loopbackApplication generatorCreate a new LoopBack application.
slc loopback:datasourceData source generatorAdd a new data source to a LoopBack application
slc loopback:modelModel generatorAdd a new model to a LoopBack application.
slc loopback:propertyProperty generatorAdd a new property to an existing model.
slc loopback:aclACL generatorAdd a new access control list (ACL) entry to the LoopBack application.
slc loopback:relation
Relation generatorAdd a new model relationship.
slc loopback:remote-methodRemote method generatorAdd a new remote method.
slc loopback:middleware
Middleware generatorAdd a new middleware configuration.
slc loopback:boot-scriptBoot script generatorAdd a new boot scripts.
slc loopback:export-api-defAPI definition generatorExport Swagger API definition.
slc loopback:swaggerSwagger generatorGenerates a fully-functional application that provides the APIs conforming to the Swagger 2.0 specification.
Icon

The slc command has many additional sub-commands not specific to LoopBack for building, deploying, and managing Node applications. See Operating Node applications for more information and Command-line reference for the command reference.

StrongLoop Arc

StrongLoop Arc is a graphical tool for building, deploying, and monitoring LoopBack applications. 

 Arc Composer enables you to:

For more information, see Composing APIs.

Profiler module enables you to generate and view:

  • Application CPU profiles (per process).
  • Application heap snapshots (per process), to help diagnose memory leaks.

For more information, see Profiling with Arc.

Click Profile Settings (full) to set up Smart Profiling.  See Smart profiling with Arc for more information.

Build & Deploy module enables you to build, package, and deploy your Node application to a local or remote system.

For more information, see Building and deploying with Arc.

Metrics module enables you to gather and view performance metrics on your application (per process).

For more information, see Viewing metrics with Arc.

Process Manager module enables you to manage an application running in clustered mode across multiple server hosts.

For more information, see Connecting to Process Manager from Arc.

Icon

Tracing is a private beta feature.

The StrongLoop Arc Tracing module enables you to analyze performance and execution of Node applications to discover bottlenecks and trace code execution paths.  You can display up to five hours of data to discover how applications perform over time.

You can drill down into specific function calls and execution paths for HTTP and database requests, to see how and where your application is spending time. Tracing provides powerful "flame graph" visualization of an application's function call stack and the corresponding execution times to help you track down where the application spends its time.

For more information, see Tracing.

  • No labels