# 使用 Homebrew 安装 near

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

## 安装

```sh
sudo av install brew:near
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install near
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:near
- **软件包管理器:** Homebrew
- **版本:** 0.29.0
- **来源摘要:** Human-friendly console utility for interacting with NEAR Protocol
- **主页:** <https://near.cli.rs>
- **仓库:** <https://github.com/near/near-cli-rs>
- **最后更新:** 2026-07-21T04:20:01Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- near (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

NEAR CLI is a Rust command-line client for interacting with NEAR Protocol. It guides users through account, token, staking, smart-contract, transaction, network, and extension operations while also allowing fully specified commands for scripts and CI.

### 项目历史

The near-cli-rs repository began in 2021 as a Rust implementation of the NEAR command-line experience. It became a complete rewrite of the earlier JavaScript near-cli, emphasizing faster startup, no Node.js runtime dependency, interactive prompts, and system-keychain integration.

### 采用历史

The official project recommends the Rust CLI for new users. It is distributed as platform installers and portable archives, through npm/npx wrappers, Cargo, Homebrew, and source builds, with documented non-interactive patterns for CI.

### 使用方式

Running near without a complete command opens an interactive flow. Direct subcommands support account management, NEAR and token transfers, staking, smart-contract deployment and calls, transaction inspection, and selection among mainnet, testnet, and custom network configurations.

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

NEAR CLI illustrates a common ecosystem migration from a runtime-dependent JavaScript CLI to a portable Rust binary. Its broad distribution matrix, native credential stores, scripting mode, and extension mechanism make it relevant to both package maintainers and blockchain automation users.

### 时间线

- 2021-03: The near-cli-rs official repository was created.
- 2026: The project documented near-cli-rs as the recommended CLI for new users and continued distributing native installers, archives, npm wrappers, Cargo builds, and package-manager builds.

### Related projects

- The project replaces the older JavaScript near-cli for new users and complements cargo-near for building Rust smart contracts on NEAR.

### 来源

- <https://github.com/near/near-cli-rs#readme>
- <https://github.com/near/near-cli-rs/blob/main/docs/README.en.md>
- <https://github.com/near/near-cli-rs/releases>
- <https://near.cli.rs/>


## 安全说明

没有找到 near 的匹配本地密钥处理 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

- Linux: ${XDG_CONFIG_HOME:-$HOME/.config}/near-cli/config.toml
- macOS: ~/Library/Application Support/near-cli/config.toml
- Windows: %APPDATA%\near-cli\config.toml

## Combined YAML source

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


## 来源

- pkg.so package database
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
