🔥 Just Launched! Werra Premium Template for HyväSee it in Action

Useful Magento 2 Indexer Commands for Developers

By Sanjay JethvaUpdated on May 22, 2025 2 min read

Magento stores are constantly updated with the addition of new products, category, changes in price rules, creating a catalog, etc. To ensure that the store viewers can view this changes, indexing is done. The Magento 2 Indexing is necessary to update the changes in store frontend as well.

Magento accumulates data into special tables using indexers in order to optimize the performance in the storefront. The indexing is an automatic process, set up by cron. However, it may be required to perform Magento 2 Indexer commands. Here, I’ve tried to list out the commands to make the task of developers easier ?

Magento 2 Indexer Commands:

1. To show allowed indexer: php bin/magento indexer:info

1_show-allowed-indexers

2. To reindex data: php bin/magento indexer:reindex

2_Reindex-Data

3. To reset indexer status to invalid: php bin/magento indexer:reset

3_Reset-indexer-status-to-invalid

4. To set index mode type  (real-time or schedule): php bin/magento indexer:set-mode

5_Show-Index-Mode

5. To show status of indexer: php bin/magento indexer:status

6_Shows-status-of-Indexer

Here you go!

Keep improving your Magento 2 store and update the changes by indexing using the indexer commands listed above.Happy Updating

Thank You.

Sanjay Jethva Full Image
Article bySanjay Jethva

Sanjay is the co-founder and CTO of Meetanshi with hands-on expertise with Magento since 2011. He specializes in complex development, integrations, extensions, and customizations. Sanjay is one the top 50 contributor to the Magento community and is recognized by Adobe. His passion for Magento 2 and Shopify solutions has made him a trusted source for businesses seeking to optimize their online stores. He loves sharing technical solutions related to Magento 2 & Shopify.