Post
Topic
Board Bitcoin Technical Support
Re: Need help with my testnet bitcoind for cli
by
nc50lc
on 26/03/2024, 04:20:42 UTC
I'm still strugling with bitcoin-cli because he doesn't want to read config file in PATH. Rather than bitcoind is running correctly into this path...
What are the args that you use with bitcoin-cli?
Because if --datadir or --conf arg aren't provided, it'll assume that you're using the default path and the bitcoin.conf file in it.
For example, if you launch bitcoind with --datadir= ; bitcoin-cli should also be run with --datadir=.

If you need to keep things tidy, you can just set every arg including the datadir in a bitcoin.conf file and set it to both bitcoind and bitcoin-cli with --conf= arg.

Better yet, if you want to minimize the usage of args, you can even put that bitcoin.conf file in bitcoin's default datadir,
then you can just launch bitcoind/bitcoin-cli without any args and it should load configurations on that bitcoin.conf file.