I tired to re-index magento 2.0.7 using CMD with command of php bin/magento indexer:reindex but i received
php is not recognized as an internal or external command,operable program or batch file.
Please help me in this
if you are using windows then run this command in cmd
C:\wamp\bin\php\php5.5.12>php.exe C:\wamp\www\Magento\www\bin\magento indexer:reindex
and if you want to reindex only one indexer then write following command:
C:\wamp\bin\php\php5.5.12>php.exe C:\wamp\www\Magento\www\bin\magento indexer:reindex indexer_name.
indexer_name can be found by typing following command :
C:\wamp\bin\php\php5.5.12>php.exe C:\wamp\www\Magento\www\bin\magento indexer:info
Hope it helps
You have to add PHP in environment variable. There are two ways to add environment variable, through MyComputer property and another is command prompt terminal.
I suggest you to use cygwin software for windows system it works like linux in windows system,
setx PATH "%PATH%;[php bin path]"
After configured PHP in environment variable, you reindex magento using
php bin/magento indexer:reindex
Looks like you don't have installed composer in your machine. So first you need to install composer to perform that operation.
Download composer by visiting this link
You need to add path of your php.exe file in you environment variable section.
You can add like below:
Restart command prompt to make it effect.