monerod commands are typed into a running Monero daemon, either in its console window or from a second terminal as ./monerod <command>. The handful you will use most are status (height, sync, connections), sync_info (who you are syncing from), print_cn (connected peers), print_pool_stats (the mempool), hard_fork_info (consensus version), limit (bandwidth) and exit (stop cleanly). This cheat sheet lists those and the rest by task, with what each prints.

The command names below come from src/daemon/command_server.cpp in Monero 0.18.5.4, checked in November 2026, and the descriptions follow the official monerod reference. They are commands, typed without dashes. Options such as --prune-blockchain are a different thing: they go on the command line when you start the daemon.

How to run a command

There are two ways:

  1. In the console. If monerod runs in the foreground, type the command and press Enter.
  2. From another terminal. If monerod runs in the background (--detach, systemd, Docker), run ./monerod status from the same folder. The second process sends the command to the running daemon over its RPC port and prints the answer.

The second method talks to the daemon on its RPC port (18081 by default). If you changed --rpc-bind-port or set --rpc-login, pass the same values: ./monerod --rpc-bind-port 18091 status. On stagenet add --stagenet. The Monero GUI has its own console for this under Settings, Log.

Type help for the list, or help <command> for one command's syntax.

Status and sync

CommandWhat it does
statusOne line: height, sync percentage, network, mining, net hash rate, consensus version, connections, uptime
sync_infoSync progress plus every connected peer with its height and download/upload rates
print_heightThe local chain height
diffThe current difficulty
versionThe daemon version
print_statusWhether the daemon is running

status is the one to remember. A typical line from the documentation reads: Height: 186754/186754 (100.0%) on stagenet, not mining, net hash 317 H/s, v9, up to date, 8(out)+0(in) connections, uptime 0d 3h 48m 47s.

Read it from left to right:

  • Height a/b: your chain height and the highest your peers report. When both match and it says 100%, you are synced. Compare with the current height on our network page.
  • v16: the consensus version. Mainnet has been on version 16 since August 2022.
  • 8(out)+0(in): outgoing and incoming peer connections. Zero incoming usually means port 18080 is not reachable from outside; see Monero node ports.

Peers and network

CommandWhat it does
print_cnConnected peers, with direction (in/out), address, state and traffic
print_pl [type] [limit]The stored peer list; type is white, gray, pruned or publicrpc
print_pl_statsCounts of white (recently seen) and gray (remembered) peers
print_net_statsNetwork statistics
in_peers <n>Set the maximum number of incoming connections
out_peers <n>Set the maximum number of outgoing connections (default 12)
limit [kB/s]Show or set both bandwidth limits
limit_up [kB/s] / limit_down [kB/s]Upload or download limit only

The default rate limits are 8,192 kB/s up and 32,768 kB/s down, according to the reference. On a slow home connection limit_up 1024 keeps the node from saturating your upload.

Bans

CommandWhat it does
ban <IP> [seconds]Ban an IP, by default for 24 hours
unban <IP>Lift a ban
bansList current bans with the time left

For a list of known bad IPs loaded at start, use the --ban-list <file> option instead, or --enable-dns-blocklist. Our article on Monero DNS checkpoints and block lists explains both.

Transaction pool

CommandWhat it does
print_pool_statsNumber of transactions, total size, fees, double-spend attempts
print_pool_shEvery pool transaction in a short format
print_poolEvery pool transaction in full
flush_txpool [txid]Remove one transaction, or all of them, from your node's pool
relay_tx <txid>Re-broadcast a transaction that is in your pool

These are useful when a payment seems stuck. print_pool_sh shows whether your node has the transaction at all; relay_tx pushes it out again. flush_txpool only empties your node's pool; other nodes keep their copies. Our guide on a Monero transaction pending has the full troubleshooting order, and the mempool page shows what our own node sees.

Blocks and transactions

CommandWhat it does
print_block <hash or height>One block in detail
print_bc <begin> [end]A range of blocks: hash, height, time, version, size, weight, transactions, difficulty, reward
print_tx <txid> [+hex] [+json]One transaction
is_key_image_spent <key_image>Whether a key image has been spent
hard_fork_infoCurrent consensus version and any scheduled fork
alt_chain_info [blockhash]Alternative chains the node knows about
print_coinbase_tx_sum <height> [count]Coins emitted and fees paid in a range

print_coinbase_tx_sum 0 <current height> is how you add up the supply on your own node. It is slow and, for that reason, refused on public nodes; see Monero restricted RPC. Our emission page explains the schedule.

hard_fork_info is worth running before every network upgrade. If it shows a fork height your node does not know about, update.

Maintenance

CommandWhat it does
prune_blockchain [confirm]Prune an existing full database
check_blockchain_pruningCheck pruning status
pop_blocks <n>Remove the top n blocks (they are re-downloaded)
flush_cache [bad-txs] [bad-blocks]Clear the caches of rejected transactions or blocks
saveWrite the chain to disk (legacy; done automatically on exit)
set_log <level or categories>Change logging while running, 0 to 4
set_bootstrap_daemon <auto, none or host:port>Set a remote node your wallets can use while you sync
update check / update downloadCheck for, or download, a new release
exit / stop_daemonStop the daemon cleanly

Two notes from experience:

  • prune_blockchain on an existing database prunes it logically, but the file does not shrink by itself. For the full saving, start a fresh sync with --prune-blockchain. Our blockchain size guide has the numbers.
  • pop_blocks is a repair tool for a node stuck on a bad block after a crash. It is rarely needed; try exit and a restart first.

Always stop with exit. Killing the process or pulling the power can corrupt the database, especially with the faster --db-sync-mode settings. If that has already happened, see our guide to a Monero daemon that fails to start.

Mining

CommandWhat it does
start_mining <address> [threads] [do_background_mining] [ignore_battery]Solo-mine to a primary address
stop_miningStop
mining_statusWhether the node is mining, and its hash rate
show_hr / hide_hrPrint the hash rate continuously, or stop

The built-in miner is for testing and stagenet. The address must be a primary address, not a subaddress. For real mining use P2Pool and XMRig; see how to mine Monero and the mining calculator.

Commands that need care

A few commands change state and are easy to regret:

  • flush_txpool without an argument empties your whole pool, including transactions your own wallet just sent. They still exist on other nodes, but your node forgets them until they are relayed again.
  • pop_blocks with a large number forces a long re-download.
  • prune_blockchain cannot be undone; going back to a full node means a full resync.
  • ban on a range of addresses can cut you off from honest peers if you mistype.
  • stop_mining and start_mining are harmless, but mining on a laptop drains the battery quickly.

When in doubt, help <command> shows the syntax before you run it.

Useful start options that pair with these commands

These are options, not commands, but you will look for them next:

OptionWhy
--detachRun in the background so you can use ./monerod status
--non-interactiveRun in the foreground without a console, for containers
--prune-blockchainKeep about a third of the data
--data-dir <path>Put the blockchain on another drive
--log-level 1More detail while troubleshooting
--enforce-dns-checkpointingFollow emergency checkpoints automatically
--zmq-pub tcp://127.0.0.1:18083Needed for P2Pool

A short troubleshooting routine

  1. status: are you synced, and do you have peers?
  2. sync_info: are the peers ahead of you, or is everyone at the same height?
  3. print_cn: are you only connected outward? That points to a closed P2P port.
  4. print_pool_stats: is the pool unusually large? Then fees may be higher; see the Monero transaction fee guide.
  5. hard_fork_info: is an upgrade scheduled that you have not installed?

Commands in the GUI, Docker and systemd

  • Monero GUI. Settings, Log has a "Daemon log" view and a command box: "Type a command (e.g 'help' or 'status') and press Enter". It sends the same commands to the GUI's own monerod.
  • systemd. A node started as a service has no console. Run the commands from a shell as ./monerod status, from the folder with the binaries, or give the full path. Use journalctl -u monerod or the log file for history.
  • Docker. Start the container with --non-interactive so monerod does not wait for a terminal, then run commands with docker exec <container> monerod status.

In all three cases the command reaches the daemon over its RPC port, which is why changing --rpc-bind-port means passing the same port to the command.

Reading sync_info

sync_info prints your height and target height, then one line per connected peer with its address, the height it reports and transfer rates, and finally the spans of blocks currently being downloaded. Three patterns are worth recognising:

  • Every peer at your height: you are synced; nothing to do.
  • Peers far ahead, rates near zero: your downloads are stalled. Restart the node; the 0.18.5.3 release fixed several P2P stall bugs, so also check version.
  • Few peers, all outgoing: your P2P port is not reachable. That slows nothing once you are synced, but a first sync goes faster with more peers.

Our recommendation

For node operators who want releases and infrastructure news, these Telegram channels are worth following:

FAQ

How do I run a command on a monerod that runs in the background?

From the same folder, run ./monerod <command>, for example ./monerod status. Add --rpc-bind-port or --stagenet if your daemon uses them.

How do I stop monerod safely?

Type exit in the console, or run ./monerod exit. stop_daemon does the same.

How do I see how far my node is from being synced?

Run status. It shows your height, the network height your peers report and a percentage.

How do I check the Monero mempool from the daemon?

print_pool_stats for totals, print_pool_sh for a list of transactions.

What is the difference between monerod commands and options?

Options start with two dashes and are given when you start the daemon. Commands have no dashes and are sent to a daemon that is already running.

Can I prune an existing node with a command?

Yes, with prune_blockchain confirm, but the database file does not shrink right away. A fresh sync with --prune-blockchain gives the full saving at once.