This guide will explain how to install the Nibiru Chain binary, nibid
, onto your system.
- 1. Update the system
- 2. Install Golang
- 3. Install build requirements
- 4. Clone the Nibiru Repository
- Upgrade
On Ubuntu, start by updating your system
sudo apt update
sudo apt upgrade --yes
Steps described here: https://go.dev/doc/install
Install make and gcc.
sudo apt install git build-essential ufw curl jq snapd --yes
wget -q -O - https://git.io/vQhTU | bash -s -- --version 1.16
After installed, open new terminal to properly load go
cd $HOME
git clone https://github.com/NibiruChain/nibiru
cd nibiru
On this fresh clone of the repo, simply run
make build
make install
make localnet
and open another terminal.
The scheduled mainnet upgrade to nibiru-2
is planned for
cd nibiru
git fetch tags
git checkout v0.0.1
Testnet
One the Nibiru binary has been installed, for further information on joining the testnet, head over to the testnet repo.
Mainnet
One the Nibiru binary has been installed, for further information on joining mainnet, head over to the mainnet repo.
A. If after steps 1-4 you don't have the nibid
command, your go/bin directory may not be in your PATH yet. To do so, add the below to your .zshrc
or .bash_profile
export PATH=$PATH:$(go env GOPATH)/bin
B. New commands you've made on the nibid
doesn't show up. Your nibid
probably just isn't updated again after the code changes, to recompile nibid run make install
in the root
The code for nibid
is located in the /cmd/nibid
folder.
In addition to the commands available within that folder, nibid
pulls in cli subcommands from the modules e.g. /x/perps/cli
After updating the code run
make build
make install
To see all the commands available just add --help
to the end.
Example:
nibid --help
nibid query --help
nibid tx --help
nibid query perp --help