README
Mainframe CLI
Usage
# In packages/cli
./bin/run
Commands
env:create
: create a new environmentenv:default
: get or set the default environment to useenv:delete
: delete an environmentenv:list
: list the environmentsdaemon:setup
: configure the daemon binary and socket pathsdaemon:status
: display the daemon running status and socket pathdaemon:start
: start the daemon using the store configurationdaemon:stop
: start the daemon using the store configurationclient:repl
: open a node REPL with an injectedclient
object connected to the daemonclient:setup
: ensure the environment has a default vault setupvault:create
: create a vaultvault:delete
: delete a vaultvault:list
: list existing vaultsvault:settings
: set and/or display a vault settingsgraphql:query
: execute a GraphQL querygraphql:schema
: write the GraphQL schemagraphql:server
: create a HTTP proxy for GraphQL queriesidentity:create
: create an identityidentity:list
: list identitiesapp:create
: create an appapp:publish
: publish the app to Swarmwallet:createEth
: create a new Ethereum walletwallet:connectLedgerAccount
: connect an account from ledger hardware walletwallet:delete
: delete a walletwallet:importEth
: import an Ethereum wallet
Environment setup
- Run
env:create
to create a new environment, set it as default unless you want to provide it explicitly in the next commands - Run
daemon:setup
to configure the path to thedaemon
CLI, ex./bin/run daemon:setup --bin-path=../daemon/bin/run
- Run
daemon:start
to start the daemon, useDEBUG="mainframe:*" ./bin/run daemon:start
to see the logs - Run
client:setup
to create a new vault and configure it to be used by default - Run
client:repl
to start interacting with the daemon