{"id":30114034,"url":"https://github.com/near/near-cli-rs","last_synced_at":"2026-04-16T23:01:13.874Z","repository":{"id":38992166,"uuid":"343875447","full_name":"near/near-cli-rs","owner":"near","description":"near CLI is your human-friendly companion that helps to interact with NEAR Protocol from command line.","archived":false,"fork":false,"pushed_at":"2026-04-16T16:30:53.000Z","size":14082,"stargazers_count":140,"open_issues_count":18,"forks_count":77,"subscribers_count":6,"default_branch":"main","last_synced_at":"2026-04-16T16:32:02.690Z","etag":null,"topics":["blockchain","cli","hacktoberfest","nearprotocol"],"latest_commit_sha":null,"homepage":"https://near.cli.rs","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/near.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-03-02T18:37:25.000Z","updated_at":"2026-04-16T16:24:40.000Z","dependencies_parsed_at":"2026-02-05T20:04:13.388Z","dependency_job_id":"5be6f717-ab19-41a3-949f-0202742fb44a","html_url":"https://github.com/near/near-cli-rs","commit_stats":{"total_commits":248,"total_committers":17,"mean_commits":"14.588235294117647","dds":0.5201612903225806,"last_synced_commit":"59b78ab5339b7235f42d1fd7bb90f3d3e1f5bfc2"},"previous_names":[],"tags_count":92,"template":false,"template_full_name":null,"purl":"pkg:github/near/near-cli-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/near%2Fnear-cli-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/near%2Fnear-cli-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/near%2Fnear-cli-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/near%2Fnear-cli-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/near","download_url":"https://codeload.github.com/near/near-cli-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/near%2Fnear-cli-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31907720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","cli","hacktoberfest","nearprotocol"],"created_at":"2025-08-10T07:37:37.283Z","updated_at":"2026-04-16T23:01:13.832Z","avatar_url":"https://github.com/near.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NEAR CLI\n\nnear CLI is your **human-friendly** companion that helps to interact with [NEAR Protocol](https://near.org) from command line.\n\nJust run `near` and let it guide you through!\n\n\u003cp\u003e\n  \u003cimg src=\"docs/media/create-account.svg\" alt=\"\" width=\"1200\"\u003e\n\u003c/p\u003e\n\n## Install\n\nVisit [Releases page](https://github.com/near/near-cli-rs/releases/) to see the latest updates.\n\n\u003cdetails\u003e\n  \u003csummary\u003eInstall via Windows Installer (Windows)\u003c/summary\u003e\n\n  \nhttps://github.com/user-attachments/assets/607f797b-0412-4741-984b-6b6032d05262\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eInstall via powershell script (Windows)\u003c/summary\u003e\n\n```sh\nirm https://github.com/near/near-cli-rs/releases/latest/download/near-cli-rs-installer.ps1 | iex\n```\n\nhttps://github.com/user-attachments/assets/7d5d090e-4885-4c27-9d0f-045905952071\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eInstall via shell script (macOS, Linux, Windows/WSL)\u003c/summary\u003e\n\n```sh\ncurl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/near-cli-rs/releases/latest/download/near-cli-rs-installer.sh | sh\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eRun via npx (Node.js on Windows, Linux, macOS)\u003c/summary\u003e\n\n```sh\nnpx near-cli-rs\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eUse in package.json scripts (Node.js on Windows, Linux, macOS)\u003c/summary\u003e\n\n```sh\nnpm install near-cli-rs\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eGet a portable version (Windows, Linux, macOS)\u003c/summary\u003e\n\n  \nhttps://github.com/user-attachments/assets/4a7e4633-1957-4dc2-a032-827fa9c06c29\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eCompile and install from the source code (Cargo on Windows, Linux, macOS)\u003c/summary\u003e\n\nInstall it with `cargo`, just make sure you have [Rust](https://rustup.rs) installed on your computer.\n\n\u003e NOTE: On Linux, near-cli-rs is built with Ledger devices support by default, and that requires `libudev-dev` package. On Debian/Ubuntu, install it with `apt install libudev-dev`.\n\n```bash\ncargo install near-cli-rs\n```\n\nor, install the most recent version from git repository:\n\n```bash\n$ cargo install --git https://github.com/near/near-cli-rs\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eInstall on CI (GitHub Actions)\u003c/summary\u003e\n\nIt is often desirable to use `near` CLI from CI to automate some actions, so here is an example of how you can make a function call during CI:\n\n```yml\nname: Release\non:\n  push:\n    branches: [main]\n\njobs:\n  deploy-widgets:\n    runs-on: ubuntu-latest\n    name: Make a function call on mainnet\n    env:\n      NEAR_NETWORK_CONNECTION: mainnet\n      NEAR_CONTRACT_ACCOUNT_ID: ${{ vars.NEAR_CONTRACT_ACCOUNT_ID }}\n      NEAR_SIGNER_ACCOUNT_ID: ${{ vars.NEAR_SIGNER_ACCOUNT_ID }}\n      NEAR_SIGNER_ACCOUNT_PUBLIC_KEY: ${{ vars.NEAR_SIGNER_ACCOUNT_PUBLIC_KEY }}\n      NEAR_SIGNER_ACCOUNT_PRIVATE_KEY: ${{ secrets.NEAR_SIGNER_ACCOUNT_PRIVATE_KEY }}\n\n    steps:\n    - name: Checkout repository\n      uses: actions/checkout@v2\n\n    - name: Install near CLI\n      run: |\n        curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/near-cli-rs/releases/download/v0.7.4/near-cli-rs-installer.sh | sh\n\n    - name: Call some function\n      run: |\n        near contract call-function as-transaction \"$NEAR_CONTRACT_ACCOUNT_ID\" 'function_name_here' json-args '{}' prepaid-gas '100 TeraGas' attached-deposit '0 NEAR' sign-as \"$NEAR_SIGNER_ACCOUNT_ID\" network-config \"$NEAR_NETWORK_CONNECTION\" sign-with-plaintext-private-key --signer-public-key \"$NEAR_SIGNER_ACCOUNT_PUBLIC_KEY\" --signer-private-key \"$NEAR_SIGNER_ACCOUNT_PRIVATE_KEY\" send\n```\n\nYou will need to configure GitHub Actions Secrets and Variables and once it is ready, this CI will only take a couple of _seconds_ to complete!\n\nSee how it is used by [DevHub]([https://github.com/near/devgigsboard](https://github.com/NEAR-DevHub/neardevhub-contract/blob/05fb66ac307d84347f29e8e3ab9f429a78cb6513/.github/workflows/release.yml#L30-L41)).\n\u003c/details\u003e\n\n## Run\n\nOnce installed, you just run it with `near` command:\n\n```bash\n$ near\n\n? What are you up to? (select one of the options with the up-down arrows on your keyboard and press Enter)\n\u003e account     - Manage accounts\n  tokens      - Manage token assets such as NEAR, FT, NFT\n  staking     - Manage staking: view, add and withdraw stake\n  contract    - Manage smart-contracts: deploy code, call functions\n  transaction - Operate transactions\n  config      - Manage connections in a configuration file (config.toml)\n  extension   - Manage near CLI and extensions\n[↑↓ to move, enter to select, type to filter]\n```\n\nThe CLI interactively guides you through some pretty complex topics, helping you make informed decisions along the way. Also, you can enable [shell history integration](docs/SHELL_HISTORY_INTEGRATION.md)\n\n## [Read more in English](docs/README.en.md)  \n  - [Usage](docs/README.en.md#usage)\n  - [Installation](docs/README.en.md#installation)\n  - [User Guide](docs/README.en.md#user-guide)\n  - [Config](docs/README.en.md#config)\n  - [Building](docs/README.en.md#building)\n\n## [Больше информации на русском языке (in Russian)](docs/README.ru.md)\n  - [Применение](docs/README.ru.md#применение)\n  - [Установка](docs/README.ru.md#установка)\n  - [Инструкция](docs/README.ru.md#инструкция)\n  - [Конфигурационный файл](docs/README.ru.md#конфигурационный-файл)\n  - [Сборка](docs/README.ru.md#сборка)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnear%2Fnear-cli-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnear%2Fnear-cli-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnear%2Fnear-cli-rs/lists"}