user113534: I have changed the configuration directory for bitcoind.
However when I make a bitcion-cli request:
bitcoin-cli getblockcount

I get an error about RPC credentials using ~/.bitcoin/bitcoin/conf
So for me to actually run the command with the correct config and authnetication cookie I have to specify the configuration directory explicitly every time. Is there a way to make it implicit?
bitcoin-cli -conf=/media/btc/bitcoin/bitcoin.conf getblockcount
581510


user38618: In this case I would create an alias?
$ alias BCLI="bitcoin-cli -conf=/media/btc/bitcoin/bitcoin.conf"
$ BCLI getblockcount

On Windows you may use doskey.

113534: <p>I have changed the configuration directory for <code>bitcoind</code>.</p>
<p>However when I make a <code>bitcion-cli</code> request:</p>
<pre><code>bitcoin-cli getblockcount
</code></pre>
<p>I get an error about RPC credentials using <code>~/.bitcoin/bitcoin/conf</code></p>
<p>So for me to actually run the command with the correct config and authnetication cookie I have to specify the configuration directory explicitly <strong>every time</strong>. Is there a way to make it implicit?</p>
<pre><code>bitcoin-cli -conf=/media/btc/bitcoin/bitcoin.conf getblockcount
581510
</code></pre>
 38618: <p>In this case I would create an alias?</p>
<pre><code>$ alias BCLI=&quot;bitcoin-cli -conf=/media/btc/bitcoin/bitcoin.conf&quot;
$ BCLI getblockcount
</code></pre>
<p>On Windows you may use <a href="https://superuser.com/a/560558">doskey</a>.</p>
