3

I have installed bitcoin-core with Homebrew on my MacOS, but the only package installed is Bitcoin-Qt. How do I also install bitcoin-cli?

(Just want to play with the commands for learning.)

noitseuq
  • 133
  • 4
  • I didn't know you could brew install Bitcoin Core until your question. If you download Bitcoin Core from bitcoincore.org bitcoin-cli is included. I'd be surprised if that wasn't the case for the brew install but this is the first time I've seen it – Michael Folkson Sep 10 '22 at 12:56
  • 1
    @MichaelFolkson Homebrew installs the same .dmg published on the official website, take a look: https://formulae.brew.sh/api/cask/bitcoin-core.json – noitseuq Sep 10 '22 at 13:54
  • Indeed, so it includes the bitcoin-cli. Don't know why the OP doesn't have it. Maybe not following the Core docs on how to access it? – Michael Folkson Sep 10 '22 at 14:06
  • Are you following these instructions for accessing the bitcoin-cli? You should have it installed https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md#other-commands – Michael Folkson Sep 10 '22 at 14:16
  • @noitseuq Does this answer your question? https://bitcoin.stackexchange.com/questions/43148/bitcoin-cli-not-found-on-osx –  Sep 11 '22 at 03:14
  • @1440000bytes thanks, yes, it actually reveals that "there's no bitcoin-cli built in the dmg file for mac os". So you need to compile from source. – noitseuq Sep 16 '22 at 16:05
  • @MichaelFolkson thanks for you help! I ended up playing with Bitcoin using built-in graphical console. – noitseuq Sep 16 '22 at 16:05

1 Answers1

2

This will install bitcoind and bitcoin-cli:

$ brew install bitcoin

This is how you install Bitcoin Core (MacOS app with UI):

$ brew install --cask bitcoin-core
yegor256
  • 162
  • 8