Use the commands below to configure your New Relic One CLI preferences. You can click on 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.
Command | Description |
---|---|
Removes the value of a specific configuration. | |
Shows a specific configuration. | |
Lists your configuration choices. | |
Sets a specific configuration value. |
nr1 config:delete
Remove a configuration
Removes the value of a specific configuration.
Usage
$ nr1 config:delete OPTION
Options
| This is required. The key of the config. |
| The authentication profile you want to use. |
| If present, this configuration will only apply while running with the specified profile. |
| Adds extra information to the output. |
Aliases
nr1 config:remove
nr1 config:rm
Examples
$ nr1 config:delete --key=proxyHttp
nr1 config:get
See your configuration
Shows the value for a specific configuration.
Usage
$ nr1 config:get OPTION
Options
| This is required. The key of the config. |
| The authentication profile you want to use. |
| Adds 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
| The authentication profile you want to use. |
| Adds extra information to the output. |
Aliases
$ nr1 config:ls
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
| This is required. The key of the config. |
| The value of the config. |
| The authentication profile you want to use |
| If present, this configuration will only apply while running with the specified profile. |
| Adds extra information to the output. |
Examples
$ nr1 config:set --key=proxyEnabled
$ nr1 config:set --key=proxyEnabled --value=ENABLED