Author

Topic: 0.9's bitcoin-cli (Read 1876 times)

legendary
Activity: 3682
Merit: 1580
April 03, 2014, 11:01:56 AM
#9
Where is bitcoin-cli? Just downloaded 0.9 and there is no such file.

Depends on your OS and what you downloaded/installed. In the linux tarball it's in the bin/32 and bin/64 sub-directories.
sr. member
Activity: 364
Merit: 257
April 02, 2014, 06:41:52 PM
#8
Where is bitcoin-cli? Just downloaded 0.9 and there is no such file.
legendary
Activity: 3682
Merit: 1580
March 27, 2014, 05:13:26 AM
#7
Until now bitcoind was both the client and the server. The plan is to make bitcoind the server only, and bitcoin-cli the client.

Hmmm.

I'm currently using bitcoind and talking to it over RPC. What should I be doing now? Do I run both bitcoind AND bitcoin-cli? Sorry if I'm being dense.

You don't run bitcoin-cli at all. bitcoin-cli is only used over the command line interface hence the name. If you are communicating to bitcoind via http + jsonRPC there is no need to use bitcoin-cli.
legendary
Activity: 4542
Merit: 3393
Vile Vixen and Miss Bitcointalk 2021-2023
March 26, 2014, 08:46:51 PM
#6
OK, thanks. Seems like a step backwards to me, but I'll go with it.
No, it's a step forward. bitcoind now works like all other servers in that respect. If you're running, say, ftpd as an FTP server, you don't talk to the server by running ftpd , instead you use a separate client program. It really never made any sense in the first place for bitcoind to function as either a server or a client depending on the context.
full member
Activity: 224
Merit: 100
Professional anarchist
March 26, 2014, 08:00:30 AM
#5
bitcoind runs in the background just like before.

Whenever you need to ask it something via RPC, you do "bitcoin-cli foobar". As soon as you get the response, bitcoin-cli doesn't run anymore, like your daily ls/dir.

OK, thanks. Seems like a step backwards to me, but I'll go with it.
legendary
Activity: 1974
Merit: 1029
March 26, 2014, 07:53:50 AM
#4
bitcoind runs in the background just like before.

Whenever you need to ask it something via RPC, you do "bitcoin-cli foobar". As soon as you get the response, bitcoin-cli doesn't run anymore, like your daily ls/dir.
full member
Activity: 224
Merit: 100
Professional anarchist
March 26, 2014, 06:08:42 AM
#3
Until now bitcoind was both the client and the server. The plan is to make bitcoind the server only, and bitcoin-cli the client.

Hmmm.

I'm currently using bitcoind and talking to it over RPC. What should I be doing now? Do I run both bitcoind AND bitcoin-cli? Sorry if I'm being dense.
legendary
Activity: 1974
Merit: 1029
March 26, 2014, 05:47:36 AM
#2
Until now bitcoind was both the client and the server. The plan is to make bitcoind the server only, and bitcoin-cli the client.
full member
Activity: 224
Merit: 100
Professional anarchist
March 26, 2014, 05:26:46 AM
#1
With 0.9, the idea seems to be moving away from using bitcoind as an RPC server, and towards using bitcoin-cli to control the server. Is there any info on how to do this? Will bitcoin-cli become the RPC server? Or do we send and parse JSON over the command line to bitcoin-cli?

I'm not following the thinking here.
Jump to: