Skip to content

Latest commit

 

History

History
245 lines (163 loc) · 5.98 KB

plugins.md

File metadata and controls

245 lines (163 loc) · 5.98 KB

commercelayer plugins

Manage CLI plugins.

commercelayer plugins

List installed plugins.

USAGE
  $ commercelayer plugins [--json] [--core]

FLAGS
  --core  Show core plugins.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  List installed plugins.

EXAMPLES
  $ commercelayer plugins

See code: @oclif/plugin-plugins

commercelayer plugins:available

Show all available Commerce Layer CLI plugins.

USAGE
  $ commercelayer plugins:available

DESCRIPTION
  show all available Commerce Layer CLI plugins

EXAMPLES
  $ commercelayer plugins:available

See code: src/commands/plugins/available.ts

commercelayer plugins:inspect PLUGIN...

Displays installation properties of a plugin.

USAGE
  $ commercelayer plugins:inspect PLUGIN...

ARGUMENTS
  PLUGIN...  [default: .] Plugin to inspect.

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Displays installation properties of a plugin.

EXAMPLES
  $ commercelayer plugins:inspect myplugin

See code: @oclif/plugin-plugins

commercelayer plugins:install PLUGIN

Installs a plugin into commercelayer.

USAGE
  $ commercelayer plugins:install PLUGIN... [--json] [-f] [-h] [-s | -v]

ARGUMENTS
  PLUGIN...  Plugin to install.

FLAGS
  -f, --force    Force npm to fetch remote resources even if a local copy exists on disk.
  -h, --help     Show CLI help.
  -s, --silent   Silences npm output.
  -v, --verbose  Show verbose npm output.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Installs a plugin into commercelayer.

  Uses npm to install plugins.

  Installation of a user-installed plugin will override a core plugin.

  Use the COMMERCELAYER_NPM_LOG_LEVEL environment variable to set the npm loglevel.
  Use the COMMERCELAYER_NPM_REGISTRY environment variable to set the npm registry.

ALIASES
  $ commercelayer plugins:add

EXAMPLES
  Install a plugin from npm registry.

    $ commercelayer plugins:install myplugin

  Install a plugin from a github url.

    $ commercelayer plugins:install https://github.com/someuser/someplugin

  Install a plugin from a github slug.

    $ commercelayer plugins:install someuser/someplugin

See code: @oclif/plugin-plugins

commercelayer plugins:latest [PLUGIN]

Show latest version of available plugins.

USAGE
  $ commercelayer plugins:latest [PLUGIN] [-b]

ARGUMENTS
  PLUGIN  the name of the plugin

FLAGS
  -b, --beta  retrieve latest version from beta channel

DESCRIPTION
  show latest version of available plugins

EXAMPLES
  $ commercelayer plugins:latest

  $ cl plugins:latest resources

See code: src/commands/plugins/latest.ts

commercelayer plugins:link PATH

Links a plugin into the CLI for development.

USAGE
  $ commercelayer plugins:link PATH [-h] [--install] [-v]

ARGUMENTS
  PATH  [default: .] path to plugin

FLAGS
  -h, --help          Show CLI help.
  -v, --verbose
      --[no-]install  Install dependencies after linking the plugin.

DESCRIPTION
  Links a plugin into the CLI for development.
  Installation of a linked plugin will override a user-installed or core plugin.

  e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
  command will override the user-installed or core plugin implementation. This is useful for development work.


EXAMPLES
  $ commercelayer plugins:link myplugin

See code: @oclif/plugin-plugins

commercelayer plugins:reset

Remove all user-installed and linked plugins.

USAGE
  $ commercelayer plugins:reset [--hard] [--reinstall]

FLAGS
  --hard       Delete node_modules and package manager related files in addition to uninstalling plugins.
  --reinstall  Reinstall all plugins after uninstalling.

See code: @oclif/plugin-plugins

commercelayer plugins:uninstall [PLUGIN]

Removes a plugin from the CLI.

USAGE
  $ commercelayer plugins:uninstall [PLUGIN...] [-h] [-v]

ARGUMENTS
  PLUGIN...  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ commercelayer plugins:unlink
  $ commercelayer plugins:remove

EXAMPLES
  $ commercelayer plugins:uninstall myplugin

See code: @oclif/plugin-plugins

commercelayer plugins:update

Update installed plugins.

USAGE
  $ commercelayer plugins:update [-h] [-v]

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Update installed plugins.

See code: @oclif/plugin-plugins