# 使用 Homebrew, chocolatey 安装 newrelic-cli

查看 newrelic-cli 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:newrelic-cli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install newrelic-cli
```

  证据: local Homebrew formula metadata

### Windows

- Chocolatey (92%):

```sh
choco install newrelic-cli
```

  证据: Chocolatey community package catalog: newrelic-cli from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','netfx-4.7.1-devpack'

## 软件包事实

- **软件包键:** brew:newrelic-cli
- **软件包管理器:** Homebrew
- **版本:** 0.113.3
- **来源摘要:** Command-line interface for New Relic
- **主页:** <https://github.com/newrelic/newrelic-cli>
- **仓库:** <https://github.com/newrelic/newrelic-cli>
- **最后更新:** 2026-07-27T16:22:48Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- newrelic (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.113.3
## 项目历史与用法

newrelic-cli is New Relic's officially supported command-line interface, released as part of the New Relic Developer Toolkit. It exposes New Relic operational workflows from the terminal and automation scripts.

### 项目历史

The CLI lives in newrelic/newrelic-cli and is written in Go. The upstream README describes it as a consolidation point for tools that manage New Relic resources, with early scope around entity search, entity tagging, and deployment markers. The release feed shows rapid patch releases through June 2026, including v0.112.15 on 2026-06-30; Homebrew reported the same stable version on 2026-07-01.

### 采用历史

Adoption follows New Relic's SaaS ecosystem rather than a language community. Homebrew analytics reported 641 install-on-request events over 30 days, 1,940 over 90 days, and 6,196 over 365 days, plus small `--HEAD` usage. The README also documents macOS Homebrew, Windows Scoop and Chocolatey, Linux Snap, prebuilt binaries, signed checksums, and an official Docker image, so Homebrew is only one packaging channel.

### 使用方式

New Relic's docs describe using the CLI to manage entity tags, define workloads, record deployment markers, and automate common DevOps tasks. The getting-started flow includes configuring credentials, searching for an application, creating entity tags, reading tags back, and creating an APM deployment marker with a revision such as `git describe --tags --always`.

Package nerds use `newrelic` in local troubleshooting and CI/CD: tag entities after provisioning, mark deployments during release jobs, query account entities, script workload or dashboard-related changes, and avoid direct GraphQL/API plumbing for common operational tasks.

### 为什么软件包爱好者会关心

newrelic-cli is significant as vendor-supported automation glue. It is not just a convenience wrapper: it is the packaged terminal surface for New Relic workflows that otherwise require the UI or direct API calls.

### 时间线

- 2020-01-27: GitHub release feed repository id history indicates the public repository era around early 2020.
- 2026-06-03: Release feed shows v0.112.10.
- 2026-06-30: Release feed shows v0.112.15.
- 2026-07-01: Homebrew formula API reported stable 0.112.15 and 6,196 install-on-request events over 365 days.

### Related projects

- New Relic Developer Toolkit is the umbrella context named by upstream.
- newrelic-client-go underpins many New Relic API interactions and appears in release dependency updates.
- New Relic's official Docker image is another supported distribution path.

### 来源

- <https://docs.newrelic.com/docs/new-relic-solutions/build-nr-ui/newrelic-cli/>
- <https://docs.newrelic.com/docs/new-relic-solutions/tutorials/new-relic-cli/>
- <https://formulae.brew.sh/api/formula/newrelic-cli.json>
- <https://formulae.brew.sh/formula/newrelic-cli>
- <https://github.com/newrelic/newrelic-cli>
- <https://github.com/newrelic/newrelic-cli/releases.atom>
- <https://raw.githubusercontent.com/newrelic/newrelic-cli/master/README.md>


## 安全说明

没有找到 newrelic-cli 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.newrelic/config.json

## Credential files

- Unix: ~/.newrelic/credentials.json
## 其他软件包管理器记录

- Chocolatey - newrelic-cli: normalized package name match | Chocolatey community package catalog: newrelic-cli from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','netfx-4.7.1-devpack'


## Combined YAML source

View the package source record on GitHub. [combined/newrelic-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/newrelic-cli.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
