@arcblock/ocap-cli

v0.14.0
Public command line tools to use together with OCAP
ocap blockchain arcblock sdk nodejs

ocap-cli

Command line tools to ease development for ArcBlock Developers

Installation

npm install -g @arcblock/ocap-cli

Usage

Available Commands

❯ ocap
Usage: ocap [options] [command]

Options:
  -V, --version                             output the version number
  -h, --help                                output usage information

Commands:
  dapp:create                               Bootstrap a new DAPP that have OCAP service SDK integrated
  dapp:start                                Start an DApp bootstrapped with `ocap dapp:create`
  dapp:build                                Build an DApp bootstrapped with `ocap dapp:create`
  eth:debugWallet                           Print wallet info detail such as type, address, privateKey, publicKey
  eth:genWallet                             Generate an ethereum wallet (public/private key pair, keystore, HD Wallet)
  eth:signPersonal [message]                Sign message with an ethereum wallet key to get a MetaMask compatible signature
  eth:verifyPersonal [message] [signature]  Verify a signature produced from eth:signPersonal
  hd:exportXKeys                            Export extended keys from hd wallet mnemonic

Bootstrap an DAPP

Used when bootstrap an DApp with our starter projects: ocap-react-starter, ocap-vue-starter

ocap dapp:create

Then you can start the DApp with:

ocap dapp:start

Sign personal message

Used when verify wallet address in OCAP Developer Console

ocap eth:signPersonal 'hello ocap'

Debug wallet info

ocap eth:debugWallet
npm i @arcblock/[email protected]

Metadata

  • Unknown
  • Whatever
  • wangshijun
  • released 11/30/2018

Downloads

Maintainers