Skip to content

[CLI] Show list of all available commands in help #934

@bajtos

Description

@bajtos

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

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 usersfeature

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions