-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
CLIdeveloper-experienceIssues affecting ease of use and overall experience of LB usersIssues affecting ease of use and overall experience of LB usersfeature
Milestone
Description
As a lb4 user, I would like to run lb4 --help (or a similar well-known command) to obtain a list of all commands available (e.g. extension, controller, etc.)
Acceptance Criteria
- When running
lb4 --help, besides the current content, it also contains the list of available commands. The additional output should look like:
Available commands:
lb4 extension
lb4 controller
lb4 example
Additional Information
-
See https://github.com/strongloop/generator-loopback/tree/master/bluemix for inspiration in how to make it available to the "available command".
-
In LB3, running
lb --helpgives the following output:
Usage:
lb app [options] [<name>]
Options:
-h, --help # Print the command's options and usage
--skip-cache # Do not remember prompt answers Default: false
--skip-install # Do not install npm dependencies Default: false
--skip-next-steps # Do not print "next steps" info
--explorer # Add Loopback Explorer to the project (true by default)
--loopbackVersion # Select the LoopBack version
--template # Set up the LoopBack application template
--bluemix # Set up as a Bluemix app
Arguments:
name # Name of the application to scaffold. Type: String Required: false
Description:
Creates a LoopBack application.
Example:
lb
This will create:
package.json: Development packages installed by npm.
common/models/<modelName>.json: Definition of basic models provided by LoopBack.
common/models/: Directory where to put custom model code.
server/server.js: The main application file.
server/config.json: Machine-editable app configuration.
server/datasources.json: Definition of data sources.
server/model-config.json: Model configuration.
Available commands:
lb acl
lb app
lb bluemix
lb boot-script
lb datasource
lb export-api-def
lb middleware
lb model
lb oracle
lb property
lb relation
lb remote-method
lb soap
lb swagger
lb zosconnectee
Metadata
Metadata
Assignees
Labels
CLIdeveloper-experienceIssues affecting ease of use and overall experience of LB usersIssues affecting ease of use and overall experience of LB usersfeature