# asch-cli **Repository Path**: hawkledger/asch-cli ## Basic Information - **Project Name**: asch-cli - **Description**: Asch command line interface and dapp sdk/template inbuilt - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-09-29 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![Build Status](https://travis-ci.org/AschPlatform/asch-cli.png?branch=master)](https://travis-ci.org/AschPlatform/asch-cli) [![Author](https://img.shields.io/badge/author-@AschPlatform-blue.svg?style=flat)](http://github.com/AschPlatform) [![License](https://img.shields.io/badge/license-MIT-yellow.svg?style=flat)](http://AschPlatform.mit-license.org) [![NpmDownload Status](http://img.shields.io/npm/dm/asch-cli.svg)](https://www.npmjs.org/package/asch-cli) [![NPM Version](https://img.shields.io/npm/v/asch-cli.svg?style=flat)](https://www.npmjs.org/package/asch-cli) - - - # Asch Client A command line interface for bootstrapping and managing [Asch](https://github.com/AschPlatform) blockchain apps. ## Installation 由于依赖的inquirer模块在低版本node下存在bug 最新的dapps系列子命令要求node版本号为v8.4.0以上 ``` npm install -g asch-cli ``` ## Usage ``` ./bin/asch-cli --help Usage: asch-cli [options] [command] Commands: getheight get block height getblockstatus get block status openaccount [secret] open your account and get the infomation by secret openaccountbypublickey [publickey] open your account and get the infomation by publickey getbalance [address] get balance by address getaccount [address] get account by address getvoteddelegates [options] [address] get delegates voted by address getdelegatescount get delegates count getdelegates [options] get delegates getvoters [publicKey] get voters of a delegate by public key getdelegatebypublickey [publicKey] get delegate by public key getdelegatebyusername [username] get delegate by username getblocks [options] get blocks getblockbyid [id] get block by id getblockbyheight [height] get block by height getpeers [options] get peers getunconfirmedtransactions [options] get unconfirmed transactions gettransactions [options] get transactions gettransaction [id] get transactions sendmoney [options] send money to some address registerdelegate [options] register delegate upvote [options] vote for delegates downvote [options] cancel vote for delegates setsecondsecret [options] set second secret registerdapp [options] register a dapp contract [options] contract operations crypto [options] crypto operations dapps [options] manage your dapps creategenesis [options] create genesis block peerstat analyze block height of all peers delegatestat analyze delegates status ipstat analyze peer ip info Options: -h, --help output usage information -V, --version output the version number -H, --host Specify the hostname or ip of the node, default: 127.0.0.1 -P, --port Specify the port of the node, default: 4096 -M, --main Specify the mainnet, default: false ``` ## Documents [asch-docs](https://github.com/AschPlatform/asch-docs)