The CLI serves two purposes:
Synchronizing blocks & transactions with your dashboard
Synchronizing contract's artifact data for Truffle projects
Install the CLI globally with the following command:
npm install -g ethernal
If you haven't done so already, this is the first thing to do after installing.
Your email is stored in
Your password is stored in your local keychain.
You only need to login once. If you need to log in with another account, you can just run the command again.
To listen to transactions, the CLI will pull the server address of the latest used workspace. If you want to specify a different workspace you can use the
Or for a different workspace:
ethernal listen -w staging
If the passed workspace name is not found, it will default to the latest used.
The CLI will also watch by default your artifacts if you have run it in a Truffle project (there needs to be a truffle-config.js file in the directory).
If you are looking to set up a Truffle project:
If your chain is not running locally and you don't want to listen to transactions, but only synchronize artifacts, you can run
ethernal listen -s
And if you are on a remote server hosting the chain, and you don't want to watch for contracts, you can run:
ethernal listen -l
Specify the workspace to connect to
Latest used / First Created
Specify the directory to watch for artifact change. You can pass multiple parameters by using a comma as a separator.
. (current directory)
Do not watch for artifact change - only listen for transactions
Do not listen for transactions - only watch for contract changes