browse
Download binary →
newrelic/New Relic CLI
New RelicCommand line interface for New Relic observability platform with NRQL query support.
Observability & MonitoringJSON
01Agent Notes
newrelic CLI supports NRQL queries via `newrelic nrql query`. Use `--format json` for structured output. Key commands: `newrelic entity search`, `newrelic nrql query`, `newrelic profile` management. Use `newrelic entity search --name <name> --format json` for entity discovery. `newrelic apm deployment create` for deployment markers.
02Global Flags
| Flag | Type | Description |
|---|---|---|
--format | enum [json, text] | Output format |
--accountId | string | New Relic account ID |
03Authentication
Methods
access-token
Env vars
NEW_RELIC_API_KEYNEW_RELIC_ACCOUNT_IDNEW_RELIC_REGIONSetup
newrelic profile add04Install
brew install newrelic-cli05Capabilities
Reference
binary
newreliccheck
newrelic versionauth
access-tokenformats
text, textjson flag
--format jsonversion
0.108.1