user1760: I want to get all my addresses - including the auto-generated "change" addresses - from a running bitcoind somehow.
I haven't been able to do it in a simple way. "getaddressesbyaccount" and all the other API options are only listing the "public" addresses and sometimes few additional ones, but never the already used change addresses. Can I do that somehow?

user29422: The proper command is $ bitcoin-cli listreceivedbyaddress 0 true. It will list all addresses in your wallet, regardless of have being used or not
This answer was originally a comment by CR to Eyal's answer

user1409: You may be able to use pywallet to get these.
Download a more updated version here.

user1507: listaddressgroupings
I used the command listaddressgroupings from the bitcoin-qt console window and it listed all my addresses.  I then looked for one of my old send transactions here:
https://blockchain.info/
And found the change address.  It matches one of the addresses in the list.

1760: <p>I want to get all my addresses - <em>including the auto-generated "change" addresses</em> - from a running bitcoind somehow.</p>

<p>I haven't been able to do it in a simple way. "getaddressesbyaccount" and all the other API options are only listing the "public" addresses and sometimes few additional ones, but never the already used change addresses. Can I do that somehow?</p>
 29422: <p>The proper command is <code>$ bitcoin-cli listreceivedbyaddress 0 true</code>. It will list all addresses in your wallet, regardless of have being used or not</p>
<p>This answer was originally a comment by <a href="https://bitcoin.stackexchange.com/users/69675/cr">CR</a> to Eyal's answer</p>
 1409: <p>You may be able to use <a href="https://en.bitcoin.it/wiki/Pywallet" rel="nofollow">pywallet</a> to get these.</p>

<p>Download a more updated version <a href="https://github.com/jackjack-jj/pywallet" rel="nofollow">here</a>.</p>
 1507: <p><code>listaddressgroupings</code></p>

<p>I used the command <code>listaddressgroupings</code> from the bitcoin-qt console window and it listed all my addresses.  I then looked for one of my old send transactions here:</p>

<p><a href="https://blockchain.info/">https://blockchain.info/</a></p>

<p>And found the change address.  It matches one of the addresses in the list.</p>
