• Sign up

New Relic One CLI config commands

To configure your New Relic One CLI preferences, use the commands below. You can click any command to see its usage options and additional details about the command.

Run nr1 config:list to see all your existing configurations and their keys.


CommandDescription
nr1 config:setSets a specific configuration value.
nr1 config:getShows a specific configuration.
nr1 config:listLists your configuration choices.
nr1 config:deleteRemoves the value of a specific configuration.

Command details


nr1 config:set

Set a configuration

Sets a specific configuration value given a configuration key. By default, the command will prompt you for a new value after providing a key, but you can also use the --k, --key=KEY option to skip this step.

Usage

$ nr1 config:set OPTION

Options

-k, --key=KEYThe key of the config. (required)
-V, --value=VALUEThe value of the config.
--profile=PROFILEThe authentication profile you want to use.
-t, --this-profile-onlyIf present, this configuration will only apply while running with the specified profile.
--verboseAdds extra information to the output.

Examples

  • $ nr1 config:set --key=proxyEnabled
  • $ nr1 config:set --key=proxyEnabled --value=ENABLED


nr1 config:get

See your configuration

Shows the value for a specific configuration.

Usage

$ nr1 config:get OPTION

Options

-k, --key=KEYThe key of the config. (required)
--profile=PROFILEThe authentication profile you want to use.
--verboseAdds extra information to the output.


nr1 config:list

See all your configurations

Shows a list of all your configuration choices, including the configuration key, value, and origin.

Usage

$ nr1 config:list

Options

--profile=PROFILEThe authentication profile you want to use.
--verboseAdds extra information to the output.

Aliases

  • $ nr1 config:ls


nr1 config:delete

Remove a configuration

Removes the value of a specific configuration.

Usage

$ nr1 config:delete OPTION

Options

-k, --key=KEYThe key of the config. (required)
--profile=PROFILEThe authentication profile you want to use.
-t, --this-profile-onlyIf present, this configuration will only apply while running with the specified profile.
--verboseAdds extra information to the output.

Aliases

  • nr1 config:remove
  • nr1 config:rm

Examples:

  • $ nr1 config:delete --key=proxyHttp