browse
newrelic/

New Relic CLI

New Relic

Command 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
FlagTypeDescription
--formatenum [json, text]Output format
--accountIdstringNew Relic account ID

03Authentication
Methods
access-token
Env vars
NEW_RELIC_API_KEYNEW_RELIC_ACCOUNT_IDNEW_RELIC_REGION
Setupnewrelic profile add

04Install
brew install newrelic-cli
Download binary →

05Capabilities
Reference
binarynewrelic
checknewrelic version
authaccess-token
formatstext, text
json flag--format json
version0.108.1