Page Contents

Synopsis

Creates a new LoopBack application.

lb [app] [options] [<name>]

With IBM API Connect developer toolkit:

apic loopback --type api [options]

With legacy StrongLoop tools:

slc loopback [options] [<name>]

Options

--bluemix
Configure the app for deployment to Bluemix. With this option, the tool will present additional prompts for generating Bluemix application artifacts.
--explorer
Add Loopback Explorer to the project. Default is true.
-n, --name <name>
Only with IBM API Connect developer toolkit; specify name of LoopBack application project.
--skip-next-steps
Do not print “next steps” information.

Standard options

-h, --help
Print the generator’s options and usage.
--skip-cache
Do not remember prompt answers. Default is false.
--skip-install
Do not automatically install dependencies. Default is false.

Arguments

Provide the application name as an optional argument (or, with API Connect, as value of --name option).  The tool will create a directory of that name to contain the application.

Interactive Prompts

The generator will prompt you for:

  • Name of the directory in which to create your application.  Press Enter to create the application in the current directory.
  • Name of the application, that defaults to the directory name you previously entered.

The tool creates the standard LoopBack application structure.  See Project layout reference for details.

After you create an application, you can run additional generators from the application root directory:

Tags: tools