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

Config commands

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

nr1 config:delete

Removes the value of a specific configuration.

nr1 config:get

Shows a specific configuration.

nr1 config:list

Lists your configuration choices.

nr1 config:set

Sets a specific configuration value.

nr1 config:delete

Remove a configuration

Removes the value of a specific configuration.

Usage

$ nr1 config:delete OPTION

Options

-k, --key=KEY

This is required. The key of the config.

--profile=PROFILE

The authentication profile you want to use.

-t, --this-profile-only

If present, this configuration will only apply while running with the specified profile.

--verbose

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

-k, --key=KEY

This is required. The key of the config.

--profile=PROFILE

The authentication profile you want to use.

--verbose

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

--profile=PROFILE

The authentication profile you want to use.

--verbose

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

-k, --key=KEY

This is required. The key of the config.

-V, --value=VALUE

The value of the config.

--profile=PROFILE

The authentication profile you want to use

-t, --this-profile-only

If present, this configuration will only apply while running with the specified profile.

--verbose

Adds extra information to the output.

Examples

  • $ nr1 config:set --key=proxyEnabled
  • $ nr1 config:set --key=proxyEnabled --value=ENABLED
Copyright © 2024 New Relic Inc.

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