LaunchKit · 2026
Back to Skills

near-cli-tools

NEAR Protocol CLI installation and setup guide.

0
441 downloads
by @cuongdcdev

Setup & Installation

openclaw skills install @cuongdcdev/near-cli-tools

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install near-cli-tools

What This Skill Does

Installs and configures near-cli-rs, the Rust-based NEAR Protocol command-line interface. Covers multiple installation methods across Linux, macOS, and Windows. Also handles PATH setup, verification, and first-use account commands.

Supports four installation paths (shell script, npm, Windows MSI, Cargo) so any developer can get set up without switching tools.

When to use it

  • Installing NEAR CLI on a new development machine
  • Verifying NEAR CLI is correctly installed and on PATH
  • Viewing account balance and summary on NEAR mainnet
  • Importing an existing NEAR account using a seed phrase
  • Deploying or calling functions on a NEAR smart contract

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: How do I install NEAR CLI and check my account balance?

AGENT
  1. 1Run the shell script installer via curl to install near-cli-rs
  2. 2Locate the near binary absolute path using `which near` or `whereis near`
  3. 3Add ~/.cargo/bin to PATH if near is not found
  4. 4Run `near --version` to confirm installation succeeded
  5. 5Run `near account view-account-summary <account.near> network-config mainnet now` to show balance
OUTPUT

NEAR CLI installed and account summary displayed showing balance and staking info

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

NEAR account (account ID on mainnet or testnet)