Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

near/near-cli

NEAR command line interface

The NEAR protocol library as CLI tool. More documentation here

Installation

npm install -g near-shell

Usage

In command line, from directory with your project:

near <command>

Commands:

  near create_account  <account_id>            # create a developer account
  near new_project [dir]                       # generate a new project from template
  near deploy                                  # deploy your smart contract
  near call <contractName> <methodName> [args] # submits transaction, can change state, account required
  near view <contractName> <methodName> [args] # cannot change state, account is contract name

Options:

Option Description Type
--help Show help [boolean]
--version Show version number [boolean]