8000 GitHub - near/near-cli at v0.10.1
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.
/ near-cli Public archive

General purpose command line tools for interacting with NEAR Protocol

License

MIT, Apache-2.0 licenses found

Licenses found

MIT
LICENSE
Apache-2.0
LICENSE-APACHE
Notifications You must be signed in to change notification settings

near/near-cli

Repository files navigation

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 <accountId>              # create a developer account
  near state <accountId>                       # view account
  near tx-status <hash>                        # lookup transaction status by hash
  near build                                   # build your smart contract
  near deploy                                  # deploy your smart contract
  near call <contractName> <methodName>        # schedule smart contract call which
  [args]                                       # can modify state
  near view <contractName> <methodName>        # make smart contract call which can
  [args]                                       # view state
  near state <accountId>                       # view account
  near send <receiver> <amount>                # send tokens to given receiver
  near clean                                   # clean the build environment
  near new_project [projectDir]                # create a new blank project
  near stake [accountId] [publicKey] [amount]  # create staking transaction
  near login                                   # create a developer account

Options

Option Description Type Default
--help Show help [boolean]
--version Show version number [boolean]
--nodeUrl, --node_url NEAR node URL [string] "http://localhost:3030"
--networkId, --network_id NEAR network ID for different keys by network [string] "default"
--helperUrl NEAR contract helper URL [string]
--keyPath Path to master account key [string]
--homeDir Where to look for master account [string] "~/.near"
--accountId, --account_id Unique identifier for the account [string]
0