@arcblock/ocap-cli

0.29.1 • Public • Published

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

Package Sidebar

Install

npm i @arcblock/ocap-cli

Weekly Downloads

22

Version

0.29.1

License

Apache-2.0

Unpacked Size

20.6 kB

Total Files

15

Last publish

Collaborators

  • wangshijun
  • polunzh
  • mave99a
  • gxw