Electra CLI
NodeJS CLI tools for Electra daemon and blockchain.


Installation
Local
The local installation is useful if you want to use Electra CLI tools.
Prerequisites:
npm i -g electra-cli
Remote
The remote installation is useful if you want to run a Server Node to help the network and eventually publish it as a bootstrap node for new Electra wallet users.
Deploy a Server Node
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).
Update a Server Node
cd ~/electra-cli
git pull
npm i
npm start
Usage
The usage part only concerns local installtions as a tool belt.
electra <command>
Just type electra
to show the manual and list the available commands.