The human-friendly
NEAR Protocol CLI

A blazingly fast console utility written in Rust. Interactive prompts guide you through every command.

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/near-cli-rs/releases/latest/download/near-cli-rs-installer.sh | sh
npm install -g near-cli-rs
npx near-cli-rs
cargo install near-cli-rs
irm https://github.com/near/near-cli-rs/releases/latest/download/near-cli-rs-installer.ps1 | iex
# Download portable binary from GitHub Releases
https://github.com/near/near-cli-rs/releases
near

Why near-cli-rs?

Interactive Prompts

Never remember complex command syntax again. Just type near and follow the guided prompts.

🔄

Transaction Reconstruction

Recreate any CLI command from an on-chain transaction. Re-run or modify previous transactions with ease.

🔑

Ledger Support

Sign transactions securely with your Ledger hardware wallet. Keep your keys offline and protected.

🔗

MPC Support

Control accounts using Multi-Party Computation. Distributed key management for enhanced security.

🏛️

DAO Integration

Turn any CLI command into a DAO proposal. Submit requests as a DAO member on behalf of the DAO account.

📚

TEACH-ME Mode

Learn as you go with the built-in --teach-me flag that explains every action.

Blazingly Fast

Written in Rust for maximum performance. Instant startup, no runtime dependencies.

🔐

Secure by Default

Keys stored securely in your system keychain. Full-access and function-call keys supported.

🌐

Multi-Network

Seamlessly switch between mainnet, testnet, and custom networks with simple configuration.

What you can do

$ near account
  • View account summary
  • Import & export accounts
  • Create subaccounts
  • Manage access keys
  • Delete accounts
$ near tokens
  • Send NEAR tokens
  • Transfer fungible tokens
  • Transfer NFTs
  • View balances
  • View NFT assets
$ near contract
  • Call view functions
  • Call change methods
  • Deploy contracts
  • Verify contracts
  • Download WASM/ABI
$ near staking
  • View delegation info
  • Delegate to validators
  • Withdraw stake
  • View validator list

See it in action

Managing Accounts

What do you want to do with an account?
view-account-summary - View properties for an account
import-account - Import existing account
create-account - Create a new account
list-keys - View access keys
[↑↓ to move, enter to select, type to filter]

Smart Contracts

Choose a contract action:
call-function - Execute contract method
deploy - Deploy WASM code
inspect - List function names
verify - Verify contract code
[↑↓ to move, enter to select, type to filter]

FAQ

Where are my keys stored?

Keys are securely stored in your system's native keychain (macOS Keychain, Windows Credential Manager, or Linux Secret Service). Legacy plaintext keys from near-cli are also supported for migration.

Can I use it in scripts?

Yes! While the interactive mode is great for exploration, you can also pass all arguments directly for scripting. Use --quiet mode for minimal output suitable for pipelines.

How do I switch networks?

Use near config to manage network configurations. You can set a default network or specify per-command with the network selection prompt.

How is this different from near-cli (JavaScript)?

near-cli-rs is a complete rewrite in Rust, offering faster startup times, no Node.js dependency, interactive prompts, and better security with system keychain integration. It's the recommended CLI for new users.