Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.2.TH BITCOIN-CLI "1" "October 2026" "bitcoin-cli v32.1.0" "User Commands"3.SH NAME4bitcoin-cli \- manual page for bitcoin-cli v32.1.05.SH SYNOPSIS6.B bitcoin-cli7[\fI\,options\/\fR] \fI\,<command> \/\fR[\fI\,params\/\fR]8.br9.B bitcoin-cli10[\fI\,options\/\fR] \fI\,-named <command> \/\fR[\fI\,name=value\/\fR]...11.br12.B bitcoin-cli13[\fI\,options\/\fR] \fI\,help\/\fR14.br15.B bitcoin-cli16[\fI\,options\/\fR] \fI\,help <command>\/\fR17.SH DESCRIPTION18Bitcoin Core RPC client version v32.1.019.PP20The bitcoin\-cli utility provides a command line interface to interact with a Bitcoin Core RPC server.21.PP22It can be used to query network information, manage wallets, create or broadcast transactions, and control the Bitcoin Core server.23.PP24Use the "help" command to list all commands. Use "help <command>" to show help for that command.25The \fB\-named\fR option allows you to specify parameters using the key=value format, eliminating the need to pass unused positional parameters.26.SH OPTIONS27.HP28\fB\-color=\fR<when>29.IP30Color setting for CLI output (default: auto). Valid values: always, auto31(add color codes when standard output is connected to a terminal32and OS is not WIN32), never. Only applies to the output of33\fB\-getinfo\fR.34.HP35\fB\-conf=\fR<file>36.IP37Specify configuration file. Relative paths will be prefixed by datadir38location. (default: bitcoin.conf)39.HP40\fB\-datadir=\fR<dir>41.IP42Specify data directory43.HP44\fB\-help\fR45.IP46Print this help message and exit (also \fB\-h\fR or \-?)47.HP48\fB\-named\fR49.IP50Pass named instead of positional arguments (default: false)51.HP52\fB\-rpcclienttimeout=\fR<n>53.IP54Timeout in seconds during HTTP requests, or 0 for no timeout. Not55implemented for IPC connections (see \fB\-ipcconnect\fR). (default: 900)56.HP57\fB\-rpcconnect=\fR<ip>58.IP59Send commands to node running on <ip> (default: 127.0.0.1)60.HP61\fB\-rpccookiefile=\fR<loc>62.IP63Location of the auth cookie. Relative paths will be prefixed by a64net\-specific datadir location. (default: data dir)65.HP66\fB\-rpcid=\fR<id>67.IP68Set a custom JSON\-RPC request ID string (default: 1)69.HP70\fB\-rpcpassword=\fR<pw>71.IP72Password for JSON\-RPC connections73.HP74\fB\-rpcport=\fR<port>75.IP76Connect to JSON\-RPC on <port> (default: 8332, testnet: 18332, testnet4:7748332, signet: 38332, regtest: 18443)78.HP79\fB\-rpcuser=\fR<user>80.IP81Username for JSON\-RPC connections82.HP83\fB\-rpcwait\fR84.IP85Wait for RPC server to start86.HP87\fB\-rpcwaittimeout=\fR<n>88.IP89Timeout in seconds to wait for the RPC server to start, or 0 for no90timeout. (default: 0)91.HP92\fB\-rpcwallet=\fR<walletname>93.IP94Send RPC for non\-default wallet on RPC server (needs to exactly match95corresponding \fB\-wallet\fR option passed to bitcoind). This changes96the RPC endpoint used, e.g.97http://127.0.0.1:8332/wallet/<walletname>98.HP99\fB\-stdin\fR100.IP101Read extra arguments from standard input, one per line until EOF/Ctrl\-D102(recommended for sensitive information such as passphrases). When103combined with \fB\-stdinrpcpass\fR, the first line from standard input104is used for the RPC password.105.HP106\fB\-stdinrpcpass\fR107.IP108Read RPC password from standard input as a single line. When combined109with \fB\-stdin\fR, the first line from standard input is used for the110RPC password. When combined with \fB\-stdinwalletpassphrase\fR,111\fB\-stdinrpcpass\fR consumes the first line, and \fB\-stdinwalletpassphrase\fR112consumes the second.113.HP114\fB\-stdinwalletpassphrase\fR115.IP116Read wallet passphrase from standard input as a single line. When117combined with \fB\-stdin\fR, the first line from standard input is used118for the wallet passphrase.119.HP120\fB\-version\fR121.IP122Print version and exit123.PP124Debugging/Testing options:125.PP126Chain selection options:127.HP128\fB\-chain=\fR<chain>129.IP130Use the chain <chain> (default: main). Allowed values: main, test,131testnet4, signet, regtest132.HP133\fB\-signet\fR134.IP135Use the signet chain. Equivalent to \fB\-chain\fR=\fI\,signet\/\fR. Note that the network136is defined by the \fB\-signetchallenge\fR parameter137.HP138\fB\-signetchallenge\fR139.IP140Blocks must satisfy the given script to be considered valid (only for141signet networks; defaults to the global default signet test142network challenge)143.HP144\fB\-signetseednode\fR145.IP146Specify a seed node for the signet network, in the hostname[:port]147format, e.g. sig.net:1234 (may be used multiple times to specify148multiple seed nodes; defaults to the global default signet test149network seed node(s))150.HP151\fB\-testnet\fR152.IP153Use the testnet3 chain. Equivalent to \fB\-chain\fR=\fI\,test\/\fR. Support for testnet3154is deprecated and will be removed in an upcoming release.155Consider moving to testnet4 now by using \fB\-testnet4\fR.156.HP157\fB\-testnet4\fR158.IP159Use the testnet4 chain. Equivalent to \fB\-chain\fR=\fI\,testnet4\/\fR.160.PP161CLI Commands:162.HP163\fB\-addrinfo\fR164.IP165Get the number of addresses known to the node, per network and total.166.HP167\fB\-generate\fR168.IP169Generate blocks, equivalent to RPC getnewaddress followed by RPC170generatetoaddress. Optional positional integer arguments are171number of blocks to generate (default: 1) and maximum iterations172to try (default: 1000000), equivalent to RPC generatetoaddress173nblocks and maxtries arguments. Example: bitcoin\-cli \fB\-generate\fR 41741000175.HP176\fB\-getinfo\fR177.IP178Get general information from the remote server. Note that unlike179server\-side RPC calls, the output of \fB\-getinfo\fR is the result of180multiple non\-atomic requests. Some entries in the output may181represent results from different states (e.g. wallet balance may182be as of a different block from the chain state reported)183.HP184\fB\-netinfo\fR185.IP186Get network peer connection information from the remote server. An187optional argument from 0 to 4 can be passed for different peers188listings (default: 0). If a non\-zero value is passed, an189additional "outonly" (or "o") argument can be passed to see190outbound peers only. Pass "help" (or "h") for detailed help191documentation.192.PP193IPC interprocess connection options:194.HP195\fB\-ipcconnect=\fR<address>196.IP197Connect to bitcoin\-node through IPC socket instead of TCP socket to198execute requests. Valid <address> values are 'auto' to try to199connect to default socket path at <datadir>/node.sock but fall200back to TCP if it is not available, 'unix' to connect to the201default socket and fail if it isn't available, or 'unix:<socket202path>' to connect to a socket at a nonstandard path.203\fB\-noipcconnect\fR can be specified to avoid attempting to use IPC at204all. Default value: auto205.SH COPYRIGHT206Copyright (C) 2009-2026 The Bitcoin Core developers208Please contribute if you find Bitcoin Core useful. Visit209<https://bitcoincore.org/> for further information about the software.210The source code is available from <https://github.com/bitcoin/bitcoin>.212This is experimental software.213Distributed under the MIT software license, see the accompanying file COPYING214or <https://opensource.org/license/MIT>215.SH "SEE ALSO"216bitcoin(1), bitcoind(1), bitcoin-cli(1), bitcoin-tx(1), bitcoin-wallet(1), bitcoin-util(1), bitcoin-qt(1)
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.