Skip to content

Nibiru CLI (Command-Line Interface) ​

Use the Nibiru CLI to query chain data, send transactions, and run nodes. This guide introduces its configuration, commands, and flags.

Nibiru CLI Guides ​

  1. Nibiru CLI - How to Install the Nibiru CLI
  2. Nibiru CLI - Creating Fungible Tokens

The native CLI command is nibid. Bun and npm installs expose it as nibiru, which forwards all arguments to the native binary. For those installs, replace nibid with nibiru in the examples below and in the linked guides.

Working directory ​

The CLI stores configuration, blockchain data, and local keyring files under $HOME/.nibid by default. Use the --home flag to select another directory.

Connect to a full node ​

By default, nibid connects to the RPC endpoint at tcp://localhost:26657. Use the --node flag to connect to a full node on another machine.

Global flags ​

Query commands ​

Query commands use the following global flags:

Name, shorthandTypeDefault valueDescription
--chain-idstringNetwork chain ID
--homestring$HOME/.nibidDirectory for config and data
--tracestringPrint out full stack trace on errors
--log_formatstringplainLog format: json or plain

Transaction commands ​

Transaction commands use the following global flags:

Name, shorthandTypeDefaultDescription
--account-numberint0AccountNumber to sign the tx
--broadcast-modestringsyncBroadcast mode: sync, async, or block
--dry-runboolfalseSimulate the transaction without broadcasting it
--feesstringFees to pay along with transaction
--fromstringName of private key with which to sign
--gasstring200000Gas limit per transaction; use "simulate" to estimate it
--gas-adjustmentfloat1Multiplier applied to the simulated gas estimate
--gas-pricesstringGas prices in decimal format to determine the transaction fee
--generate-onlyboolfalseWrite an unsigned transaction to standard output
--help, -hstringPrint help message
--keyring-backendstringosSelect keyring's backend
--ledgerboolfalseUse a connected Ledger device
--memostringMemo to send along with transaction
--nodestringtcp://localhost:26657RPC endpoint for the full node
--offlinestringRun without connecting to a node
--sequenceint0Sequence number to sign the tx
--sign-modestringSigning mode: direct or amino-json
--trust-nodebooltrueDon't verify proofs for responses
--yesbooltrueSkip the transaction confirmation prompt
--chain-idstringNetwork chain ID
--homestring$HOME/.nibidDirectory for config and data
--tracestringPrint out full stack trace on errors

Module commands ​

SubcommandDescription
devgasDevgas subcommands for smart contract usage.
bankBank subcommands for managing assets.
keysKeys subcommands for managing local tendermint keystore.