Install the Nibiru CLI
Install the Nibiru CLI to query chain data, send transactions, and run nodes. Use Bun or npm, download a release binary, or build from source.
- Option 1: Install with Bun or npm
- Option 2: Use the Bash installer
- Option 3: Download a release binary
- Option 4: Build from source
- Post-installation
- Local development
- Docker Engine
- Next steps
Option 1: Install with Bun or npm
Install the CLI globally with Bun:
bun install --global @nibiruchain/nibiru
nibiru versionOr use npm:
npm install --global @nibiruchain/nibiru
nibiru versionThese commands install the npm default version. The package supports Linux and macOS on x64 and arm64. On Windows, use WSL. Keep optional dependencies enabled so the package manager installs the binary for your platform.
The launcher requires Node.js on your PATH, including when you install with Bun. It exposes the command nibiru, which runs the native binary of a released version and forwards all arguments. The native binary runs under two names, nibiru and nibid, and help prints the name you used. Source builds and container images install nibiru with nibid as a symlink to it, and release archives hold nibid. Use nibiru or nibid in the other CLI guides, whichever your install provides.
Option 2: Use the Bash installer
curl -s https://get.nibiru.fi/! | bashTo install a specific version:
curl -s https://get.nibiru.fi/@v2.19.0! | bashThe ! suffix moves the binary to /usr/local/bin and may prompt for your sudo password. Omit ! to download without moving the binary.
Option 3: Download a release binary
Download an archive from the Nibiru releases page. Expand the release's assets to find the download links. Choose darwin for macOS or linux for Linux and WSL.
Check your CPU architecture:
uname -mUse an amd64 archive for x86_64, or an arm64 archive for arm64 or aarch64.

For example, extract the Linux amd64 archive for version v2.19.0:
tar -xzf nibid_2.19.0_linux_amd64.tar.gzAdd the directory containing nibid to your shell configuration, replacing /path/to/nibid-directory with its actual path:
export PATH="/path/to/nibid-directory:$PATH"Or install the binary in /usr/local/bin:
sudo install -m 755 nibid /usr/local/bin/nibidOption 4: Build from source
A source build writes the binary nibiru and a nibid symlink that points to it. Both names run the same program.
Install build tools
Install Git, a C compiler, and just. On macOS, install the Command Line Tools and just:
xcode-select --install
brew install justOn Ubuntu or WSL, install Git and the compiler tools, then install just using its installation guide:
sudo apt-get update
sudo apt-get install --yes git build-essentialInstall Go
Install Go with Homebrew:
brew install go
go versionFor other installation methods, follow the official Go installation instructions. Use a Go version that satisfies the selected release's go.mod requirement.
Compile the source code
Clone the repository, select the release, and install nibiru and the nibid symlink:
git clone https://github.com/NibiruChain/nibiru
cd nibiru
just installPost-installation
For Bun or npm installs, check the version and available commands:
nibiru version
nibiru --helpFor the Bash installer, manual download, or source build, use:
nibid version
nibid --helpA source build also installs nibiru. If a Bun or npm install of nibiru comes first on your PATH, that command runs the released binary. Run $(go env GOPATH)/bin/nibiru to use your build.
If your shell cannot find the command, check the installation's bin directory:
- Bun: run
bun pm bin --globaland add that directory to yourPATH. - npm: run
npm prefix --globaland add the returned directory'sbinsubdirectory to yourPATH. - Bash installer: check
/usr/local/binif you used the!suffix. - Manual download: add the directory where you extracted
nibid. - Source build: add Go's bin directory as described in the tip below.
TIP
If you see nibid: command not found after building from source, add Go's bin directory to your PATH:
export PATH="$(go env GOPATH)/bin:$PATH"Save this line in your shell configuration and reload it.
Which nibiru Am I Running?
Several installs can put a nibiru command on your PATH, for example a Bun or npm launcher and a source build. Run nibiru version --long to see which file runs. Both the text (YAML) and the JSON (-o json) output hold one field, binary_paths, with the same structure. In YAML it sorts first, because the fields sort by name. Field running_from is the running file. Each entry of commands lists every matches file on PATH in order, marks the running one with is_running, and sets first_is_running to false when another file wins the name. When that happens, the command also prints a one-line note to stderr.
binary_paths:
commands:
- first_is_running: false
matches:
- is_running: false
path: /home/me/.bun/bin/nibiru
resolved: /home/me/node_modules/@nibiruchain/nibiru/bin/nibiru.js
- is_running: true
path: /home/me/go/bin/nibiru
resolved: /home/me/go/bin/nibiru
name: nibiru
running_from: /home/me/go/bin/nibiru
build_deps: ...Rules for Agents and Scripts
- Plain
nibirumay be a packaged release, such as a Bun or npm launcher that comes first onPATH. It is not proof that you run your source build. - Call a source build by full path:
"$(go env GOPATH)/bin/nibiru". If you setGOBIN, use"$(go env GOBIN)/nibiru"instead. - Before a step that depends on the version, run
nibiru version --long -o jsonand read fieldbinary_paths. Fieldrunning_fromis the file that runs. For each entry ofcommands,first_is_runningisfalsewhen another file with that name wins onPATH.
~/go/bin/nibiru version --long -o json | jq '.binary_paths.commands[0] | {name, first_is_running}'{
"name": "nibiru",
"first_is_running": false
}The script contrib/scripts/build-nibiru.sh (run by just install) prints one marker line per name when it finishes. Each line is plain text with key=value fields, so a script can match it:
nibiru-path-shadowed name=<nibiru|nibid> runs=<path> installed=<path>: the name resolves to another file onPATH. Fieldrunsis that file andinstalledis the build just written. Callinstalledby full path or put its directory first onPATH.nibiru-path-ok name=<nibiru|nibid> runs=<path> other=<path>: the installed build wins, and a different file with the same name also sits onPATH. Fieldotheris that file.
The installer prints no marker when only one copy exists, and it exits 0 in every case. The nibid symlink that points to the installed file never counts as another copy.
Local development
Print and run the embedded single-node localnet script:
nibid localnet --script | bashFor Bun or npm installs, use:
nibiru localnet --script | BINARY=nibiru bashSetting BINARY=nibiru makes the script use the npm launcher for node commands. Stop any running localnet before running the script. It resets local chain data under $HOME/.nibid before starting the node. Open another terminal to query the local chain or send transactions.
Command List
Run nibid --help to list the commands: tx, q (alias query), keys, config, status, debug, localnet, node, help, and version. Command node holds start, init, export, genesis, prune, rollback, bft (alias tendermint), testnet, and evm-tx-index.
Add --help-verbose to any command to list the log and trace flags that help hides by default.
The top-level forms, such as nibid start, and the nibid name still run, so Cosmovisor, Docker images, and systemd units that call nibid start need no change.
Docker Engine
Some repository workflows use Docker containers. Follow the Docker Engine installation instructions when working with those workflows.