---
title: New Relic CLI Reference
source: https://docs.newrelic.com/docs/new-relic-solutions/build-nr-ui/newrelic-cli
---

The New Relic CLI enables the integration of New Relic into your existing workflows. Be it fetching data from your laptop while troubleshooting an issue, or adding New Relic into your CI/CD pipeline.

## New Relic CLI commands [#nr-cli-commands]

Find details for the New Relic CLI command docs in GitHub.

### Options [#nr-cli-commands-options]

```bash copyable=false
[output]   -a, --accountId int    the account ID to use. Can be overridden by setting NEW_RELIC_ACCOUNT_ID
[output]       --debug            debug level logging
[output]       --format string    output text format [JSON, Text, YAML] (default "JSON")
[output]   -h, --help             help for newrelic
[output]       --plain            output compact text
[output]       --profile string   the authentication profile to use
[output]       --trace            trace level logging
```

### Commands [#commands]

-   [newrelic apm](https://github.com/newrelic/newrelic-cli/blob/master/docs/cli/newrelic_apm.md). Interact with New Relic APM.

-   [newrelic completion](https://github.com/newrelic/newrelic-cli/blob/master/docs/cli/newrelic_completion.md). Generates shell completion functions.

-   [newrelic config](https://github.com/newrelic/newrelic-cli/blob/master/docs/cli/newrelic_config.md). Manage the configuration of the New Relic CLI.

-   [newrelic decode](https://github.com/newrelic/newrelic-cli/blob/master/docs/cli/newrelic_decode.md). Use the decode url command to print out information encrypted within the URL.

-   [newrelic documentation](https://github.com/newrelic/newrelic-cli/blob/master/docs/cli/newrelic_documentation.md). Generate CLI documentation.

-   [newrelic entity](https://github.com/newrelic/newrelic-cli/blob/master/docs/cli/newrelic_entity.md). Interact with New Relic entities.

-   [newrelic nerdgraph](https://github.com/newrelic/newrelic-cli/blob/master/docs/cli/newrelic_nerdgraph.md). Execute GraphQL requests to the NerdGraph API.

-   [newrelic nerdstorage](https://github.com/newrelic/newrelic-cli/blob/master/docs/cli/newrelic_nerdstorage.md). Read, write, and delete NerdStorage documents and collections.

-   [newrelic nrql](https://github.com/newrelic/newrelic-cli/blob/master/docs/cli/newrelic_nrql.md). Commands for interacting with the New Relic Database.

-   [newrelic profile](https://github.com/newrelic/newrelic-cli/blob/master/docs/cli/newrelic_profile.md). Manage the authentication profiles for this tool.

-   [newrelic version](https://github.com/newrelic/newrelic-cli/blob/master/docs/cli/newrelic_version.md). Show the version of the New Relic CLI.

-   [newrelic workload](https://github.com/newrelic/newrelic-cli/blob/master/docs/cli/newrelic_workload.md). Interact with New Relic workloads.
