Is there a way to interact with Bitcoin-qt from Windows cmd and run commands like if I'm running them from Bitcoin-qt console?

2 Answers 2


While you have bitcoind or bitcoin-qt running with the -server option, you can then use bitcoin-cli to run commands.

It's part of the bitcoind package.

If you have your conf file in a custom directory you'll have to specify that to bitcoin-cli as well, otherwise it should just work.

  • 1
    You'll also need to run bitcoin-qt with the -daemon option, or run bitcoind. Apr 13, 2016 at 8:29
  • thx, answer updated to make that clear.
    – Jannes
    Apr 13, 2016 at 10:28
  • 1
    Oops, the answer below corrects me: you need -server, not -daemon (which is for running in the background). Apr 14, 2016 at 7:57

The easiest way to do what you are trying to do is add one line to your bitcoin.conf file.


The file exists in one of these locations: "Where is the configuration file of bitcoin qt kept"

You are also required configure a username and password when you do this by adding these additional lines. Always use a new secure random password that is unique to only this service (don't re-use it anywhere, and don't commit it to a source code repository)

rpcuser=Ulysseys rpcpassword=YourSuperGreatPasswordNumber_DO_NOT_USE_THIS_OR_YOU_WILL_GET_ROBBED_385593

You can now run the bitcoin-cli.exe command from cmd.exe (it is installed in c:\program files\bitcoin\daemon)

It is also worth noting that you do not have to run bitcoin-qt you can choose to run bitcoind and interact with bitcoin-cli as well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.