• EnglishEspañol日本語한국어Português
  • Log inStart now

Plugins commands

To install and manage your plugins, use the commands below. You can click any command to see its usage options and additional details about the command.

Command

Description

nr1 plugins:install

Installs a plugin into the CLI.

nr1 plugins:link

Links a plugin into the CLI for development.

nr1 plugins:uninstall

Removes a plugin from the CLI.

nr1 plugins:update

Updates your installed plugins.

nr1 plugins:install

Install a plugin

Installs a plugin into the CLI. You can install plugins from npm or a Git URL.

Please note that installing a plugin will override the core plugin.

For example, if you've a core plugin that has a hello command, then installing a plugin with a hello command will override the core plugin implementation. This is useful if you want to update the core plugin functionality without patching and updating the whole CLI.

Usage

$ nr1 plugins:install PLUGIN

Arguments

  • PLUGIN: the name, path, or URL of the plugin you want to install. This is required .

Options

-f, --force

Runs yarn install --force. This forces a re-download of all the plugin's packages.

-h, --help

Shows CLI help.

--verbose

Adds extra information to the output.

Examples

  • $ nr1 plugins:install myplugin
  • $ nr1 plugins:install https://github.com/someuser/someplugin
  • $ nr1 plugins:install someuser/someplugin

Aliases

  • $ nr1 plugins:add

Links a local plugin into the CLI for development.

Please note that linking a plugin will override your user-installed plugin or core plugin.

For example, if you've a user-installed or core plugin that has a hello command, linking a plugin with a hello command will override the user-installed or core plugin implementation. This is useful for development work.

$ nr1 plugins:link PLUGIN

  • PLUGIN: the name, path, or URL of the plugin you want to link. This is required .

-h, --help

Shows CLI help.

--verbose

Adds extra information to the output.

  • $ nr1 plugins:link myplugin
  • $ nr1 plugins:link someuser/someplugin

nr1 plugins:uninstall

Uninstall your plugin

Removes a plugin from the CLI.

Usage

$ nr1 plugins:uninstall PLUGIN

Arguments

  • PLUGIN: the name of the plugin you want to uninstall. This is required .

Options

-h, --help

Shows CLI help.

--verbose

Adds extra information to the output.

Aliases

  • $ nr1 plugins:unlink
  • $ nr1 plugins:remove

nr1 plugins:update

Update your plugins

Updates all of your installed plugins.

Usage

$ nr1 plugins:update

Options

-h, --help

Shows CLI help.

--verbose

Adds extra information to the output.

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.