CLI commands
Help
ironfish help
displays all the commands and topics you can use with the Iron Fish CLI.
To get additional info about a specific command or a specific topic, type ironfish [topic/command] help
.
E.g. for a topic:
E.g. for a command:
Node
start
Starts the full node
To start a full node with a different port and a different data directory
stop
Stops the full node
status
Prints out:
- the status of your node (started / stopped)
- the syncing status of your node and syncing stats
- the networking status of your node (and networking stats)
To see live updates:
reset
Deletes your chain and wallet state, but preserves your accounts. It will import your accounts afterwards into a fresh node state.
Config
config:show
Prints out the content of your config file
config:edit
Opens the config file with your default code editor
Note: you need to set the editor config or the default editor environment variable for this command to work.
E.g. for Vscode at the config level: ironfish config:set editor "/Applications/Visual Studio Code.app/Contents/MacOS/Electron"
E.g. for Vscode at the environment level: export EDITOR="/Applications/Visual Studio Code.app/Contents/MacOS/Electron"
config:set
Sets the config value for the key.
E.g.
Note: the list of configuration options is available here
config:get
Displays the configuration value for your node
E.g.
Miners
miners:start
Starts a miner and subscribe to new blocks for the node. The node has to be synced with the network for the miner to start mining.
Networking
peers:list
Displays the list of peers connected to the node.
Displays the list of peers with live update.
Account / Wallet
accounts:create
Creating a new account with interactive mode
Creating a new account in command line
accounts:publickey
Gets the current account's public key
Gets a specific account's public key
accounts:balance
Gets the current account's balance
Gets a specific account's public key
accounts:pay
Creating a new transaction with interactive mode
Creating a new transaction in command line
Faucet
faucet:giveme
Connects to the Iron Fish faucet to get test funds
Chain
chain:show
Shows the heaviest head and tail of the node's chain. Includes the last ten blocks in the chain.