Ask your Question

Write to us !

Ask Question !

Magento2: Indexing through command line

Aditya Singh

 Indexing through Terminal or command Line

 
Go to your magento root folder and run the below commnd:
 
 php bin/magento indexer:reindex
 
Result will
 
Category Products index has been rebuilt successfully in <time>
Product Categories index has been rebuilt successfully in <time>
Product Price index has been rebuilt successfully in <time>
Product EAV index has been rebuilt successfully in <time>
Stock index has been rebuilt successfully in <time>
Catalog Rule Product index has been rebuilt successfully in <time>
Catalog Product Rule index has been rebuilt successfully in <time>
Catalog Search index has been rebuilt successfully in <time>
 
To get the indexer information you need to run 
 
 
  php bin/magento indexer:status
  
To view the list of indexers you need to run 
 
  php bin/magento indexer:info

 

Aditya Singh