user3029: I'm running bitcoind and I want to send all my coins to another address. What is the command for this? 

user11189: This command:
sendtoaddress <bitcoinaddress> <amount> 
will do the trick.
Look at the bitcoind api for more info: https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list

user2751: To be strict, OP asked to send all coins, which @eatingthenight didn't answer.
The key thing to do this is the last optional bool argument of the sendtoaddress RPC command called subtractfeefromamount. The way to use it is:
bitcoin-cli walletpassphrase <passphrase> <timeoutInSeconds>
bitcoin-cli sendtoaddress <bitcoinaddress> `bitcoin-cli getbalance` "" "" true


3029: <p>I'm running bitcoind and I want to send all my coins to another address. What is the command for this? </p>
 11189: <p>This command:</p>

<p><code>sendtoaddress &lt;bitcoinaddress&gt; &lt;amount&gt;</code> </p>

<p>will do the trick.</p>

<p>Look at the bitcoind api for more info: <a href="https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list" rel="nofollow noreferrer">https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list</a></p>
 2751: <p>To be strict, OP asked to send <strong>all</strong> coins, which @eatingthenight didn't answer.</p>
<p>The key thing to do this is the last optional bool argument of the <code>sendtoaddress</code> RPC command called <code>subtractfeefromamount</code>. The way to use it is:</p>
<pre><code>bitcoin-cli walletpassphrase &lt;passphrase&gt; &lt;timeoutInSeconds&gt;
bitcoin-cli sendtoaddress &lt;bitcoinaddress&gt; `bitcoin-cli getbalance` &quot;&quot; &quot;&quot; true
</code></pre>
