{"id":2848,"date":"2016-01-10T12:52:24","date_gmt":"2016-01-10T07:22:24","guid":{"rendered":"http:\/\/www.magewallet.com\/?p=124"},"modified":"2020-03-13T16:06:45","modified_gmt":"2020-03-13T10:36:45","slug":"magento-2-how-to-reindex-using-command-line","status":"publish","type":"post","link":"https:\/\/www.hiddentechies.com\/blog\/magento-2\/magento-2-how-to-reindex-using-command-line\/","title":{"rendered":"Magento 2 &#8211; How to Reindex using Command line"},"content":{"rendered":"<p>In Magento 1.x, store owner can directly do reindex from Index management. But in Magento 2.x there is no direct options available for Reindex from backend.<\/p>\n<p>As Magento 2.x provides reindex using command line. So lets discuss about how to do reindex using command line.<\/p>\n<p>If you need to do whole index management in the Magento 2.x store, then you have to run the following command.<\/p>\n<p>First go to magento root directory, then run below command to apply reindex to whole store.<\/p>\n<pre class=\"lang:default decode:true \">php bin\/magento indexer:reindex<\/pre>\n<p>But what if you want to reindex specific indexer. for that you will need list of the indexer name. You will get the list of indexer using below command.<\/p>\n<p>In root directory run below command,<\/p>\n<pre class=\"lang:default decode:true \">php bin\/magento indexer:info<\/pre>\n<p>Now you have list of all the indexer available, so you can run command for specific indexer.<\/p>\n<p>To run single reindex command,<\/p>\n<pre class=\"lang:default decode:true \">php bin\/magento indexer:reindex indexer_name<\/pre>\n<p>here [indexer_name] means name of the indexer which you received from &#8216;indexer:info&#8217; command.<\/p>\n<p>Let me know your comments at below and help me to improve this post and help more and more to Magento 2.x developer.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Magento 1.x, store owner can directly do reindex from Index management. But in Magento 2.x there is no direct options available for Reindex from backend. As Magento 2.x provides reindex using command line. So lets discuss about how to do reindex using command line. If you need to do whole index management in the&#8230; <\/p>\n<div class=\"actions\"><a href=\"https:\/\/www.hiddentechies.com\/blog\/magento-2\/magento-2-how-to-reindex-using-command-line\/\">Continue Reading<\/a><\/div>\n","protected":false},"author":1,"featured_media":4880,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[59],"tags":[194,10,195],"_links":{"self":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/2848"}],"collection":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/comments?post=2848"}],"version-history":[{"count":1,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/2848\/revisions"}],"predecessor-version":[{"id":4111,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/2848\/revisions\/4111"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/media\/4880"}],"wp:attachment":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/media?parent=2848"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/categories?post=2848"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/tags?post=2848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}