Practical overview
When it fits
Use it when you want a guided terminal route for NEAR Protocol tasks or need to incorporate contract interactions into a documented CI workflow.
Who it is for
- NEAR developers who want to manage contracts and make protocol calls from a terminal.
- Users who need command-line access to NEAR accounts, token assets, staking or transactions.
- Teams incorporating NEAR actions into GitHub Actions workflows.
Documented uses
- Manage NEAR accounts and token assets, including NEAR, fungible tokens and NFTs.
- View, add or withdraw staking.
- Deploy smart-contract code and call contract functions.
- Operate transactions and configure network connections in a config.toml file.
- Automate a contract function call in a GitHub Actions workflow.
Requirements & limits
The public repository specifies an Apache-2.0 license. Installation instructions cover macOS, Linux and Windows, with different installation routes for each platform.
- The interactive menu groups account, token, staking, contract, transaction, configuration and extension tasks.
- Installation routes include Homebrew, Windows installers, shell scripts, Node.js packages and Cargo.
- Building with Cargo requires Rust; the documented Linux build enables Ledger support by default and requires libudev-dev.
- The CI example configures network and signer values through GitHub Actions variables and secrets.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Install NEAR CLI with Cargo
Install the CLI from its published Cargo package.
Before you start
- Cargo and Rust installed.
- On Linux, the documented Ledger-enabled build requires libudev-dev; Debian and Ubuntu instructions specify apt install libudev-dev.
Steps
Open a terminal.
Run cargo install near-cli-rs.
Expected outcome
The NEAR CLI package is installed through Cargo.
Guide limitations
- The repository's Linux build enables Ledger support by default and requires libudev-dev.
Install NEAR CLI through Homebrew
Install the CLI on macOS or Linux using Homebrew.
Before you start
- A macOS or Linux environment with Homebrew.
Steps
Open a terminal.
Run brew install near.
Expected outcome
The Homebrew installation command installs NEAR CLI.
Guide limitations
- The documented Homebrew route is for macOS and Linux.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 11 October 2026
- Original website title
- near/near-cli-rs · Official homepage title · retained in its source language

