Mainframe CLI
Last updated 2 years ago by paul_lecam .
MIT · Original npm · Tarball · package.json
$ cnpm install @mainframe/cli 
SYNC missed versions from official npm registry.

Mainframe CLI


# In packages/cli


  • env:create: create a new environment
  • env:default: get or set the default environment to use
  • env:delete: delete an environment
  • env:list: list the environments
  • daemon:setup: configure the daemon binary and socket paths
  • daemon:status: display the daemon running status and socket path
  • daemon:start: start the daemon using the store configuration
  • daemon:stop: start the daemon using the store configuration
  • client:repl: open a node REPL with an injected client object connected to the daemon
  • client:setup: ensure the environment has a default vault setup
  • vault:create: create a vault
  • vault:delete: delete a vault
  • vault:list: list existing vaults
  • vault:settings: set and/or display a vault settings
  • graphql:query: execute a GraphQL query
  • graphql:schema: write the GraphQL schema
  • graphql:server: create a HTTP proxy for GraphQL queries
  • identity:create: create an identity
  • identity:list: list identities
  • app:create: create an app
  • app:publish: publish the app to Swarm
  • wallet:createEth: create a new Ethereum wallet
  • wallet:connectLedgerAccount: connect an account from ledger hardware wallet
  • wallet:delete: delete a wallet
  • wallet:importEth: import an Ethereum wallet

Environment setup

  1. Run env:create to create a new environment, set it as default unless you want to provide it explicitly in the next commands
  2. Run daemon:setup to configure the path to the daemon CLI, ex ./bin/run daemon:setup --bin-path=../daemon/bin/run
  3. Run daemon:start to start the daemon, use DEBUG="mainframe:*" ./bin/run daemon:start to see the logs
  4. Run client:setup to create a new vault and configure it to be used by default
  5. Run client:repl to start interacting with the daemon

Current Tags

  • 0.2.0                                ...           latest (2 years ago)

1 Versions

  • 0.2.0                                ...           2 years ago
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (12)
Dev Dependencies (3)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |