sudo apt update && sudo apt upgrade -y
sudo apt install build-essential pkg-config libssl-dev git-all protobuf-compiler -y
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
#set the CLI version variable. You can verify the version on the Nexus GitHub releases page or on Nexus Discord
echo "export CLI_VERSION='0.9.6'" >> $HOME/.bash_profile
echo "export PATH='$HOME/bin:$PATH'" >> $HOME/.bash_profile
source $HOME/.bash_profile
cd $HOME
git clone [email protected]:nexus-xyz/nexus-cli.git
cd clients/cli
cargo build --release
nexus-cli --version
cd $HOME
mkdir bin
wget -O $HOME/bin/nexus-cli https://github.com/nexus-xyz/nexus-cli/releases/download/v${CLI_VERSION}/nexus-network-linux-x86_64
chmod +x $HOME/bin/nexus-cli
nexus-cli --version
#to start with an existing node ID, run:
screen -dmS nexus nexus-cli start --node-id <your-node-id>
#alternatively, you can register your wallet address and create a node ID with the CLI, or at app.nexus.xyz.
nexus-cli register-user --wallet-address <your-wallet-address>
nexus-cli register-node
screen -dmS nexus nexus-cli start
#the register-user and register-node commands will save your credentials to ~/.nexus/config.json. To clear credentials, run:
nexus-cli logout
#for troubleshooting or to see available command line options, run:
nexus-cli --help