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 update
sudo apt-get install git -y
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
source ~/.bashrc
nvm install 10
git clone https://github.com/Electra-project/electra-cli.git
cd electra-cli
npm i
npm 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-cli
git pull
npm i
npm 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]
.