BITCOIN-CLI(1)
β¨ NAME β¨
okay bestie, gather round, this is the manual page for bitcoin-cli, and it's the User Commands girlie in your man section 1. literally the whole thing, no skips π
π¦ SYNOPSIS π¦
bitcoin-cli [options] <command> [params]
bitcoin-cli [options] -named <command> [name=value]...
bitcoin-cli [options] help
bitcoin-cli [options] help <command>
π DESCRIPTION π
so this is the Bitcoin Core RPC client, version v31.1.0, no cap.
The bitcoin-cli utility is your little command line bestie for talking to a Bitcoin Core RPC server. it's giving β¨direct communicationβ¨.
you can use it to:
- query network information
- manage wallets
- create or broadcast transactions
- control the Bitcoin Core server
Run the help command to see all the commands, and run help <command> to get the help for that specific command, periodt. And the -named option lets you hand over parameters in key=value format, which means you never have to pass a bunch of unused positional parameters again β it's honestly iconic of her.
π OPTIONS π
-color=<when>β the color setting for CLI output (default:auto). Valid values:always,auto(which adds color codes when standard output is connected to a terminal and the OS is not WIN32), andnever. Heads up: this only applies to the output of-getinfo.-conf=<file>β specify the configuration file. Relative paths get prefixed by the datadir location. (default:bitcoin.conf)-datadir=<dir>β specify the data directory.-helpβ print this help message and exit (also works as-hor-?).-namedβ pass named instead of positional arguments (default:false).-rpcclienttimeout=<n>β timeout in seconds during HTTP requests, or0for no timeout at all. (default:900)-rpcconnect=<ip>β send commands to the node running on<ip>(default:127.0.0.1).-rpccookiefile=<loc>β location of the auth cookie. Relative paths get prefixed by a net-specific datadir location. (default: data dir)-rpcpassword=<pw>β password for JSON-RPC connections.-rpcport=<port>β connect to JSON-RPC on<port>(default:8332, testnet:18332, testnet4:48332, signet:38332, regtest:18443).-rpcuser=<user>β username for JSON-RPC connections.-rpcwaitβ wait for the RPC server to start.-rpcwaittimeout=<n>β timeout in seconds to wait for the RPC server to start, or0for no timeout. (default:0)-rpcwallet=<walletname>β send RPC for a non-default wallet on the RPC server (this needs to exactly match the corresponding-walletoption you passed tobitcoind). This changes the RPC endpoint used, e.g.http://127.0.0.1:8332/wallet/<walletname>-stdinβ read extra arguments from standard input, one per line until EOF/Ctrl-D (recommended for sensitive information such as passphrases). When you combine it with-stdinrpcpass, the first line from standard input is used for the RPC password.-stdinrpcpassβ read the RPC password from standard input as a single line. When combined with-stdin, the first line from standard input is used for the RPC password. When combined with-stdinwalletpassphrase,-stdinrpcpassconsumes the first line, and-stdinwalletpassphraseconsumes the second. π-stdinwalletpassphraseβ read the wallet passphrase from standard input as a single line. When combined with-stdin, the first line from standard input is used for the wallet passphrase.-versionβ print version and exit.
π§ Debugging/Testing options:
literally just vibes here, no extra flags listed, moving on bestie π«Ά
π Chain selection options:
-chain=<chain>β use the chain<chain>(default:main). Allowed values:main,test,testnet4,signet,regtest.-signetβ use the signet chain. Equivalent to-chain=signet. Note that the network is defined by the-signetchallengeparameter.-signetchallengeβ blocks must satisfy the given script to be considered valid (only for signet networks; defaults to the global default signet test network challenge).-signetseednodeβ specify a seed node for the signet network, in thehostname[:port]format, e.g.sig.net:1234(may be used multiple times to specify multiple seed nodes; defaults to the global default signet test network seed node(s)).-testnetβ use the testnet3 chain. Equivalent to-chain=test.
β οΈ bestie, listen: support for testnet3 is deprecated and will be removed in an upcoming release. Consider moving to testnet4 now by using -testnet4.
-testnet4β use the testnet4 chain. Equivalent to-chain=testnet4.
π CLI Commands:
-addrinfoβ get the number of addresses known to the node, per network and total, after filtering for quality and recency. The total number of addresses known to the node may be higher, jsyk.-generateβ generate blocks, equivalent to the RPCgetnewaddressfollowed by the RPCgeneratetoaddress. Optional positional integer arguments are the number of blocks to generate (default:1) and maximum iterations to try (default:1000000), equivalent to the RPCgeneratetoaddressnblocksandmaxtriesarguments. Example:bitcoin-cli -generate 4 1000-getinfoβ get general information from the remote server. Note that unlike server-side RPC calls, the output of-getinfois the result of multiple non-atomic requests. Some entries in the output may represent results from different states (e.g. wallet balance may be as of a different block from the chain state reported). π it's giving slightly out of sync, but that's just how she is.-netinfoβ get network peer connection information from the remote server. An optional argument from0to4can be passed for different peers listings (default:0). If a non-zero value is passed, an additional"outonly"(or"o") argument can be passed to see outbound peers only. Pass"help"(or"h") for detailed help documentation.
πΈ COPYRIGHT πΈ
Copyright (C) 2009-2026 The Bitcoin Core developers
Please contribute if you find Bitcoin Core useful. Visit <https://bitcoincore.org/> for further information about the software. The source code is available from <https://github.com/bitcoin/bitcoin>.
β οΈ This is experimental software. Distributed under the MIT software license, see the accompanying file COPYING or <https://opensource.org/license/MIT>
β SEE ALSO β
and that's the whole page bestie, we ate and left no crumbs π
β¨ this was bitcoin-cli v31.1.0, dated July 2026, straight out of the User Commands section of your manual, no cap π«Άπ
π¦ where this page comes from
- epel 10: bitcoin-core-utils 31.1-1.el10_3 Β· MIT
- fedora 43: bitcoin-core-utils 31.1-2.fc43 Β· MIT
- fedora 44: bitcoin-core-utils 31.1-2.fc44 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms