Electra CLI
NodeJS CLI tools for Electra daemon and blockchain.
Contents
Installation and Update
Local
The local installation is useful if you want to use Electra CLI Tools.
Electra CLI Tools Installation
Prerequisites:
npm i -g electra-cli
Electra CLI Tools Update
npm i -g electra-cli
Remote
The remote installation is useful if you want to run a Bootstrap Node to help the network and publish it to help fasten the Electra wallets network bootstrap.
It is recommanded to use a real hosted server (a VPS is enough) with at least 2GB of memory.
Bootstrap Node Installation
Prerequisites:
- APT-based OS (Debian, Ubuntu, etc).
- Full root access.
cd ~sudo apt-get updatesudo apt-get install git -ywget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash# or: curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash source ~/.bashrcnvm install 10git clone https://github.com/Electra-project/electra-cli.gitcd electra-clinpm inpm start
Note
You may need to bind your internal IP port (5817) to your external IP one (same port) via your host online management website (Azure, AWS, etc).
Bootstrap Node Update
cd ~/electra-cligit pullnpm inpm start
Usage
Electra CLI Tools Usage
electra [options] [command]
To list the available commands, just type electra
.
To list the available options for each command, just type electra help [command]
.