npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

@nexex/cli

0.10.0 • Public • Published

@nexex/cli

oclif Version Downloads/week License

Usage

$ npm install -g @nexex/cli
$ nexex-cli COMMAND
running command...
$ nexex-cli (-v|--version|version)
@nexex/cli/0.10.0 darwin-x64 node-v10.12.0
$ nexex-cli --help [COMMAND]
USAGE
  $ nexex-cli COMMAND
...

Commands

nexex-cli config:del [KEY]

delete a config item

USAGE
  $ nexex-cli config:del [KEY]

OPTIONS
  -a, --showAddr
  -e, --endpoint=endpoint  [default: http://localhost:3001]
  -h, --help               show CLI help

See code: src/commands/config/del.ts

nexex-cli config:get [KEY]

get a config's value

USAGE
  $ nexex-cli config:get [KEY]

OPTIONS
  -a, --showAddr
  -e, --endpoint=endpoint  [default: http://localhost:3001]
  -h, --help               show CLI help

See code: src/commands/config/get.ts

nexex-cli config:list [FILE]

list all configs

USAGE
  $ nexex-cli config:list [FILE]

OPTIONS
  -a, --showAddr
  -e, --endpoint=endpoint  [default: http://localhost:3001]
  -h, --help               show CLI help

See code: src/commands/config/list.ts

nexex-cli config:set [KEY] [VALUE]

set a config item

USAGE
  $ nexex-cli config:set [KEY] [VALUE]

OPTIONS
  -a, --showAddr
  -e, --endpoint=endpoint  [default: http://localhost:3001]
  -h, --help               show CLI help

See code: src/commands/config/set.ts

nexex-cli daemon:start

start a local orderbook service

USAGE
  $ nexex-cli daemon:start

OPTIONS
  -a, --showAddr
  -c, --config=config
  -e, --endpoint=endpoint  [default: http://localhost:3001]
  -h, --help               show CLI help
  -m, --market=market      (required)

EXAMPLE
  $ nexex-cli daemon:start
  start a local orderbook service at port 3001

See code: src/commands/daemon/start.ts

nexex-cli daemon:status

query status of orderbook service

USAGE
  $ nexex-cli daemon:status

OPTIONS
  -a, --showAddr
  -c, --config=config
  -e, --endpoint=endpoint  [default: http://localhost:3001]
  -h, --help               show CLI help

See code: src/commands/daemon/status.ts

nexex-cli daemon:stop

stop the services

USAGE
  $ nexex-cli daemon:stop

OPTIONS
  -a, --showAddr
  -c, --config=config
  -e, --endpoint=endpoint  [default: http://localhost:3001]
  -h, --help               show CLI help

EXAMPLE
  $ nexex-cli hello
  hello world from ./src/hello.ts!

See code: src/commands/daemon/stop.ts

nexex-cli help [COMMAND]

display help for nexex-cli

USAGE
  $ nexex-cli help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

nexex-cli market:buy

place a buy order to a orderbook relayer

USAGE
  $ nexex-cli market:buy

OPTIONS
  -a, --showAddr
  -e, --endpoint=endpoint  [default: http://localhost:3001]
  -h, --help               show CLI help
  --amount=amount
  --expire=expire
  --market=market
  --price=price

EXAMPLE
  $ nexex-cli market:buy --amount 0.3 --price 0.11 --expire 1d
           Enter the passphrase to use the wallet and sign the order.

See code: src/commands/market/buy.ts

nexex-cli market:cancel ORDERHASH [AMOUNT]

describe the command here

USAGE
  $ nexex-cli market:cancel ORDERHASH [AMOUNT]

OPTIONS
  -a, --showAddr
  -e, --endpoint=endpoint  [default: http://localhost:3001]
  -h, --help               show CLI help
  --market=market

EXAMPLE
  $ nexex-cli hello
  hello world from ./src/hello.ts!

See code: src/commands/market/cancel.ts

nexex-cli market:list

describe the command here

USAGE
  $ nexex-cli market:list

OPTIONS
  -a, --showAddr
  -e, --endpoint=endpoint  [default: http://localhost:3001]
  -h, --help               show CLI help
  --market=market

EXAMPLE
  $ nexex-cli hello
  hello world from ./src/hello.ts!

See code: src/commands/market/list.ts

nexex-cli market:order

query top orders from a relayer

USAGE
  $ nexex-cli market:order

OPTIONS
  -a, --showAddr
  -e, --endpoint=endpoint  [default: http://localhost:3001]
  -h, --help               show CLI help
  -l, --limit=limit        [default: 5]
  --market=market

EXAMPLE
  $ nexex-cli market:order --limit 5

See code: src/commands/market/order.ts

nexex-cli market:sell

place a sell order to a orderbook relayer

USAGE
  $ nexex-cli market:sell

OPTIONS
  -a, --showAddr
  -e, --endpoint=endpoint  [default: http://localhost:3001]
  -h, --help               show CLI help
  --amount=amount
  --expire=expire
  --market=market
  --price=price

EXAMPLE
  $ nexex-cli market:sell --amount 0.3 --price 0.11 --expire 1d
           Enter the passphrase to use the wallet and sign the order.

See code: src/commands/market/sell.ts

nexex-cli market:trade ORDERHASH [AMOUNT]

describe the command here

USAGE
  $ nexex-cli market:trade ORDERHASH [AMOUNT]

OPTIONS
  -a, --showAddr
  -e, --endpoint=endpoint  [default: http://localhost:3001]
  -h, --help               show CLI help
  --market=market

EXAMPLE
  $ nexex-cli hello
  hello world from ./src/hello.ts!

See code: src/commands/market/trade.ts

nexex-cli token:add [TOKEN]

describe the command here

USAGE
  $ nexex-cli token:add [TOKEN]

OPTIONS
  -a, --showAddr
  -e, --endpoint=endpoint  [default: http://localhost:3001]
  -h, --help               show CLI help

EXAMPLE
  $ nexex-cli hello
  hello world from ./src/hello.ts!

See code: src/commands/token/add.ts

nexex-cli token:approve [TOKEN]

describe the command here

USAGE
  $ nexex-cli token:approve [TOKEN]

OPTIONS
  -a, --showAddr
  -e, --endpoint=endpoint  [default: http://localhost:3001]
  -h, --help               show CLI help

EXAMPLE
  $ nexex-cli hello
  hello world from ./src/hello.ts!

See code: src/commands/token/approve.ts

nexex-cli token:eth2weth [AMOUNT]

describe the command here

USAGE
  $ nexex-cli token:eth2weth [AMOUNT]

OPTIONS
  -a, --showAddr
  -e, --endpoint=endpoint  [default: http://localhost:3001]
  -h, --help               show CLI help

EXAMPLE
  $ nexex-cli hello
  hello world from ./src/hello.ts!

See code: src/commands/token/eth2weth.ts

nexex-cli token:revoke [TOKEN]

describe the command here

USAGE
  $ nexex-cli token:revoke [TOKEN]

OPTIONS
  -a, --showAddr
  -e, --endpoint=endpoint  [default: http://localhost:3001]
  -h, --help               show CLI help

EXAMPLE
  $ nexex-cli hello
  hello world from ./src/hello.ts!

See code: src/commands/token/revoke.ts

nexex-cli token:show

describe the command here

USAGE
  $ nexex-cli token:show

OPTIONS
  -a, --showAddr
  -e, --endpoint=endpoint  [default: http://localhost:3001]
  -h, --help               show CLI help

EXAMPLE
  $ nexex-cli hello
  hello world from ./src/hello.ts!

See code: src/commands/token/show.ts

nexex-cli token:weth2eth [AMOUNT]

describe the command here

USAGE
  $ nexex-cli token:weth2eth [AMOUNT]

OPTIONS
  -a, --showAddr
  -e, --endpoint=endpoint  [default: http://localhost:3001]
  -h, --help               show CLI help

EXAMPLE
  $ nexex-cli hello
  hello world from ./src/hello.ts!

See code: src/commands/token/weth2eth.ts

nexex-cli wallet:import [PK]

describe the command here

USAGE
  $ nexex-cli wallet:import [PK]

OPTIONS
  -a, --showAddr
  -e, --endpoint=endpoint  [default: http://localhost:3001]
  -h, --help               show CLI help

EXAMPLE
  $ nexex-cli hello
  hello world from ./src/hello.ts!

See code: src/commands/wallet/import.ts

nexex-cli wallet:show

describe the command here

USAGE
  $ nexex-cli wallet:show

OPTIONS
  -a, --showAddr
  -e, --endpoint=endpoint  [default: http://localhost:3001]
  -h, --help               show CLI help

EXAMPLE
  $ nexex-cli hello
  hello world from ./src/hello.ts!

See code: src/commands/wallet/show.ts

install

npm i @nexex/cli

Downloadsweekly downloads

18

version

0.10.0

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability