Magento Tutorials

How to Reindex Magento Data Using Command Line

Magento indexes the data such as products, categories, and so on to improve the performance of your storefront. When any changes have been made to your store, the data needs to be updated or reindexed, then the changes could show up on the front end.

Reindex data using command line

  1. Log in to the server using SSH credentials
  2. Navigate to your Magento root and run the follow command to see a list of all indexers:
php bin/magento indexer:info 
List of all indexers

3. To reindex any indexer, run:

php bin/magento indexer:reindex [indexer]

where [indexer] is a space-separated list of indexers

For example, the command below:

php bin/magento indexer:reindex catalogsearch_fulltext customer_grid

Will reindex the Catalog Search and the Customer Grid indexers.

Reindex selected indexers

Alternatively, to reindex all of your indexers, simply run this command:

php bin/magento indexer:reindex
Reindex all indexers Magento

Hope this helps!