user57832: Sometimes, I need to resynchronize all blocks using bitcoin core, but I want to do that through bitcoin-cli. I found a command called -rescan that may resolve my question on this site, but as I searched the api list of bitcoin on the official site for 
-rescan, I couldn't find it out, therefore, I want to make it sure.

user75001: -rescan is for your wallet. It will check for missing transactions on startup. If you want to resynchronize all blocks then I think you want to use -reindex which will rebuild chain state and block index from the blk*.dat files on disk. Of course, these are command line parameters.
You can probably use verifychain on bitcoin-cli. Type bitcoin-cli help verifychain for information.

57832: <p>Sometimes, I need to resynchronize all blocks using bitcoin core, but I want to do that through <code>bitcoin-cli</code>. I found a command called <code>-rescan</code> that may resolve my question on this site, but as I searched the api list of bitcoin on the official site for 
<code>-rescan</code>, I couldn't find it out, therefore, I want to make it sure.</p>
 75001: <p><code>-rescan</code> is for your wallet. It will check for missing transactions on startup. If you want to resynchronize all blocks then I think you want to use <code>-reindex</code> which will rebuild chain state and block index from the blk*.dat files on disk. Of course, these are command line parameters.</p>

<p>You can probably use <code>verifychain</code> on bitcoin-cli. Type <code>bitcoin-cli help verifychain</code> for information.</p>
