{"id":61,"date":"2018-03-01T17:58:12","date_gmt":"2018-03-01T17:58:12","guid":{"rendered":"http:\/\/www.magebeginners.com\/?p=61"},"modified":"2023-10-05T06:49:50","modified_gmt":"2023-10-05T06:49:50","slug":"useful-magento-2-commands","status":"publish","type":"post","link":"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/","title":{"rendered":"Magento 2 Useful Commands List 2023"},"content":{"rendered":"<p><strong>Magento 2<\/strong>\u00a0is a powerful e-commerce platform that provides a flexible and scalable architecture for building custom online stores.<\/p>\n<p>In this tutorial, we will show you the best useful command line for Magento 2.<\/p>\n<p>Here are some of the most useful CLI commands for Magento 2:<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_68_1 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#1_Clean_Cache\" title=\"1) Clean Cache\">1) Clean Cache<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#2_Flush_Cache\" title=\"2) Flush Cache\">2) Flush Cache<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#3_Disable_Cache\" title=\"3) Disable Cache\">3) Disable Cache<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#4_Enable_Cache\" title=\"4) Enable Cache\">4) Enable Cache<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#5_Check_Cache_Status\" title=\"5) Check Cache Status\">5) Check Cache Status<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#6_Enable_Module\" title=\"6) Enable Module\">6) Enable Module<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#7_Disable_Module\" title=\"7) Disable Module\">7) Disable Module<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#8_Uninstall_Module\" title=\"8) Uninstall Module\">8) Uninstall Module<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#9_Check_Modules_Status\" title=\"9) Check Modules Status\">9) Check Modules Status<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#10_Check_Current_Deploy_Mode\" title=\"10) Check Current Deploy Mode\">10) Check Current Deploy Mode<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#11_Enable_Developer_Mode\" title=\"11) Enable Developer Mode\">11) Enable Developer Mode<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#12_Enable_Production_Mode\" title=\"12) Enable Production Mode\">12) Enable Production Mode<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#13_Static_Content_Deploy\" title=\"13) Static Content Deploy\">13) Static Content Deploy<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#14_Static_Content_Deploy_For_Specific_Language\" title=\"14) Static Content Deploy For Specific Language\">14) Static Content Deploy For Specific Language<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#15_Static_Content_Deploy_For_Specific_Themes\" title=\"15) Static Content Deploy For Specific Themes\">15) Static Content Deploy For Specific Themes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#16_Static_Content_Deploy_For_Backend_Theme\" title=\"16) Static Content Deploy For Backend Theme\">16) Static Content Deploy For Backend Theme<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#17_Static_Content_Deploy_For_Exclude_Themes\" title=\"17) Static Content Deploy For Exclude Themes\">17) Static Content Deploy For Exclude Themes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#18_Static_Content_Deploy_For_Particular_Languageen_US_Exclude_Themes_Not_Minify_HTML_Files\" title=\"18) Static Content Deploy For Particular Language(en_US), Exclude Themes, Not Minify HTML Files\">18) Static Content Deploy For Particular Language(en_US), Exclude Themes, Not Minify HTML Files<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#19_ReIndex\" title=\"19) ReIndex\">19) ReIndex<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#20_Get_List_of_Available_Indexers\" title=\"20) Get List of Available Indexers\">20) Get List of Available Indexers<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#21_Check_Indexer_status\" title=\"21) Check Indexer status\">21) Check Indexer status<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#22_Check_Status_of_Specific_Indexer\" title=\"22) Check Status of Specific Indexer\">22) Check Status of Specific Indexer<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-23\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#23_Reset_All_Indexer\" title=\"23) Reset All Indexer\">23) Reset All Indexer<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-24\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#24_Show_the_Mode_of_All_Indexers\" title=\"24) Show the Mode of All Indexers\">24) Show the Mode of All Indexers<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-25\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#25_Check_Mode_of_Specific_Indexer\" title=\"25) Check Mode of Specific Indexer\">25) Check Mode of Specific Indexer<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-26\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#26_View_Magento_Version\" title=\"26) View Magento Version\">26) View Magento Version<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-27\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#27_Uninstall_Magento_Theme\" title=\"27) Uninstall Magento Theme\">27) Uninstall Magento Theme<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-28\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#28_Uninstall_Magento\" title=\"28) Uninstall Magento\">28) Uninstall Magento<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-29\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#29_Upgrades_Magento_Setup\" title=\"29) Upgrades Magento Setup\">29) Upgrades Magento Setup<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-30\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#30_Upgrades_Magento_SetupDont_want_to_Remove_pubstatic_Files\" title=\"30) Upgrades Magento Setup(Don\u2019t want to Remove pub\/static Files)\">30) Upgrades Magento Setup(Don\u2019t want to Remove pub\/static Files)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-31\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#31_Backup_of_Magento_ApplicationCode_Media_Database\" title=\"31) Backup of Magento Application(Code, Media, Database)\">31) Backup of Magento Application(Code, Media, Database)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-32\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#32_Backup_of_Magento_Only_Code\" title=\"32) Backup of Magento Only Code\">32) Backup of Magento Only Code<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-33\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#33_Backup_of_Magento_Only_Database\" title=\"33) Backup of Magento Only Database\">33) Backup of Magento Only Database<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-34\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#34_Backup_of_Magento_Only_Media\" title=\"34) Backup of Magento Only Media\">34) Backup of Magento Only Media<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-35\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#35_Magento_BackupSnapshot\" title=\"35) Magento Backup\/Snapshot\">35) Magento Backup\/Snapshot<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-36\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#36_Get_List_of_All_Backups\" title=\"36) Get List of All Backups\">36) Get List of All Backups<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-37\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#37_RestoreRollback_Magento_2_From_Backups\" title=\"37) Restore\/Rollback Magento 2 From Backups\">37) Restore\/Rollback Magento 2 From Backups<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-38\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#38_RestoreRollback_Magento_2_Code\" title=\"38) Restore\/Rollback Magento 2 Code\">38) Restore\/Rollback Magento 2 Code<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-39\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#39_RestoreRollback_Magento_2_Database\" title=\"39) Restore\/Rollback Magento 2 Database\">39) Restore\/Rollback Magento 2 Database<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-40\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#40_RestoreRollback_Magento_2_Media\" title=\"40) Restore\/Rollback Magento 2 Media\">40) Restore\/Rollback Magento 2 Media<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-41\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#41_Enable_Maintenance_Mode\" title=\"41) Enable Maintenance Mode\">41) Enable Maintenance Mode<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-42\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#42_Disable_Maintenance_Mode\" title=\"42) Disable Maintenance Mode\">42) Disable Maintenance Mode<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-43\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#43_Enable_Maintenance_Mode_For_All_ClientsIPs_Except\" title=\"43) Enable Maintenance Mode For All Clients(IPs) Except\">43) Enable Maintenance Mode For All Clients(IPs) Except<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-44\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#44_Disable_Maintenance_Mode_For_All_ClientsIPs_Except\" title=\"44) Disable Maintenance Mode For All Clients(IPs) Except\">44) Disable Maintenance Mode For All Clients(IPs) Except<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-45\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#45_Show_the_Current_Status_of_Maintenance_Mode\" title=\"45) Show the Current Status of Maintenance Mode\">45) Show the Current Status of Maintenance Mode<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-46\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#46_Exempt_IP_Addresses_From_Maintainance_Mode\" title=\"46) Exempt IP Addresses From Maintainance Mode\">46) Exempt IP Addresses From Maintainance Mode<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-47\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#47_Displays_the_Magento_Admin_URI\" title=\"47) Displays the Magento Admin URI\">47) Displays the Magento Admin URI<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-48\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#48_Displays_the_List_of_Available_Language_Locales\" title=\"48) Displays the List of Available Language Locales\">48) Displays the List of Available Language Locales<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-49\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#49_Displays_the_List_of_Available_Timezones\" title=\"49) Displays the List of Available Timezones\">49) Displays the List of Available Timezones<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-50\" href=\"https:\/\/www.webshouters.com\/blog\/useful-magento-2-commands\/#50_Displays_the_List_of_Available_Currencies\" title=\"50) Displays the List of Available Currencies\">50) Displays the List of Available Currencies<\/a><\/li><\/ul><\/nav><\/div>\n<h4><span class=\"ez-toc-section\" id=\"1_Clean_Cache\"><\/span>1) Clean Cache<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento cache:clean<\/p>\n<h4><span class=\"ez-toc-section\" id=\"2_Flush_Cache\"><\/span>2) Flush Cache<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento cache:flush<\/p>\n<h4><span class=\"ez-toc-section\" id=\"3_Disable_Cache\"><\/span>3) Disable Cache<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento cache:disable<\/p>\n<h4><span class=\"ez-toc-section\" id=\"4_Enable_Cache\"><\/span>4) Enable Cache<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento cache:enable<\/p>\n<h4><span class=\"ez-toc-section\" id=\"5_Check_Cache_Status\"><\/span>5) Check Cache Status<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento cache:status<\/p>\n<h4><span class=\"ez-toc-section\" id=\"6_Enable_Module\"><\/span>6) Enable Module<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento module:enable Namespace_Module<\/p>\n<h4><span class=\"ez-toc-section\" id=\"7_Disable_Module\"><\/span>7) Disable Module<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento module:disable Namespace_Module<\/p>\n<h4><span class=\"ez-toc-section\" id=\"8_Uninstall_Module\"><\/span>8) Uninstall Module<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento module:uninstall Namespace_Module<\/p>\n<h4><span class=\"ez-toc-section\" id=\"9_Check_Modules_Status\"><\/span>9) Check Modules Status<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento module:status<\/p>\n<h4><span class=\"ez-toc-section\" id=\"10_Check_Current_Deploy_Mode\"><\/span>10) Check Current Deploy Mode<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento deploy:mode:show<\/p>\n<h4><span class=\"ez-toc-section\" id=\"11_Enable_Developer_Mode\"><\/span>11) Enable Developer Mode<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento deploy:mode:set developer<\/p>\n<h4><span class=\"ez-toc-section\" id=\"12_Enable_Production_Mode\"><\/span>12) Enable Production Mode<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento deploy:mode:set production<\/p>\n<h4><span class=\"ez-toc-section\" id=\"13_Static_Content_Deploy\"><\/span>13) Static Content Deploy<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento setup:static-content:deploy<\/p>\n<h4><span class=\"ez-toc-section\" id=\"14_Static_Content_Deploy_For_Specific_Language\"><\/span>14) Static Content Deploy For Specific Language<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento setup:static-content:deploy en_GB<\/p>\n<h4><span class=\"ez-toc-section\" id=\"15_Static_Content_Deploy_For_Specific_Themes\"><\/span>15) Static Content Deploy For Specific Themes<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento setup:static-content:deploy &#8211;theme Magento\/luma &#8211;theme Magento\/other_theme<\/p>\n<h4><span class=\"ez-toc-section\" id=\"16_Static_Content_Deploy_For_Backend_Theme\"><\/span>16) Static Content Deploy For Backend Theme<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento setup:static-content:deploy &#8211;theme=&#8221;Magento\/backend&#8221;<\/p>\n<h4><span class=\"ez-toc-section\" id=\"17_Static_Content_Deploy_For_Exclude_Themes\"><\/span>17) Static Content Deploy For Exclude Themes<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento setup:static-content:deploy &#8211;exclude-theme Vendor\/yourtheme<\/p>\n<h4><span class=\"ez-toc-section\" id=\"18_Static_Content_Deploy_For_Particular_Languageen_US_Exclude_Themes_Not_Minify_HTML_Files\"><\/span>18) Static Content Deploy For Particular Language(en_US), Exclude Themes, Not Minify HTML Files<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento setup:static-content:deploy &#8211;exclude-theme Vendor\/yourtheme<\/p>\n<h4><span class=\"ez-toc-section\" id=\"19_ReIndex\"><\/span>19) ReIndex<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\\magento indexer:reindex<\/p>\n<h4><span class=\"ez-toc-section\" id=\"20_Get_List_of_Available_Indexers\"><\/span>20) Get List of Available Indexers<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento indexer:info<\/p>\n<h4><span class=\"ez-toc-section\" id=\"21_Check_Indexer_status\"><\/span>21) Check Indexer status<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento indexer:status<\/p>\n<h4><span class=\"ez-toc-section\" id=\"22_Check_Status_of_Specific_Indexer\"><\/span>22) Check Status of Specific Indexer<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento indexer:status indexer_name<\/p>\n<h4><span class=\"ez-toc-section\" id=\"23_Reset_All_Indexer\"><\/span>23) Reset All Indexer<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento indexer:reset<\/p>\n<h4><span class=\"ez-toc-section\" id=\"24_Show_the_Mode_of_All_Indexers\"><\/span>24) Show the Mode of All Indexers<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento indexer:show-mode<\/p>\n<h4><span class=\"ez-toc-section\" id=\"25_Check_Mode_of_Specific_Indexer\"><\/span>25) Check Mode of Specific Indexer<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento indexer:show-mode indexer_name<\/p>\n<h4><span class=\"ez-toc-section\" id=\"26_View_Magento_Version\"><\/span>26) View Magento Version<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento \u2013version<\/p>\n<h4><span class=\"ez-toc-section\" id=\"27_Uninstall_Magento_Theme\"><\/span>27) Uninstall Magento Theme<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento theme:uninstall<\/p>\n<h4><span class=\"ez-toc-section\" id=\"28_Uninstall_Magento\"><\/span>28) Uninstall Magento<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento setup:uninstall<\/p>\n<h4><span class=\"ez-toc-section\" id=\"29_Upgrades_Magento_Setup\"><\/span>29) Upgrades Magento Setup<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento setup:upgrade<\/p>\n<h4><span class=\"ez-toc-section\" id=\"30_Upgrades_Magento_SetupDont_want_to_Remove_pubstatic_Files\"><\/span>30) Upgrades Magento Setup(Don\u2019t want to Remove pub\/static Files)<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento setup:upgrade &#8211;keep-generated<\/p>\n<h4><span class=\"ez-toc-section\" id=\"31_Backup_of_Magento_ApplicationCode_Media_Database\"><\/span>31) Backup of Magento Application(Code, Media, Database)<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento setup:backup<\/p>\n<h4><span class=\"ez-toc-section\" id=\"32_Backup_of_Magento_Only_Code\"><\/span>32) Backup of Magento Only Code<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento setup:backup \u2013code<\/p>\n<h4><span class=\"ez-toc-section\" id=\"33_Backup_of_Magento_Only_Database\"><\/span>33) Backup of Magento Only Database<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento setup:backup \u2013db<\/p>\n<h4><span class=\"ez-toc-section\" id=\"34_Backup_of_Magento_Only_Media\"><\/span>34) Backup of Magento Only Media<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento setup:backup \u2013media<\/p>\n<h4><span class=\"ez-toc-section\" id=\"35_Magento_BackupSnapshot\"><\/span>35) Magento Backup\/Snapshot<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento setup:backup -v \u2013code \u2013media \u2013db<\/p>\n<p><strong>Note:<\/strong> all of the backups will be stored in the <code>var\/backups<\/code><\/p>\n<h4><span class=\"ez-toc-section\" id=\"36_Get_List_of_All_Backups\"><\/span>36) Get List of All Backups<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento info:backups:list<\/p>\n<h4><span class=\"ez-toc-section\" id=\"37_RestoreRollback_Magento_2_From_Backups\"><\/span>37) Restore\/Rollback Magento 2 From Backups<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento setup:rollback [-c|\u2013code-file=&#8221;&lt;name&gt;&#8221;][-m|\u2013media-file=&#8221;&lt;name&gt;&#8221;][-d|\u2013db-file=&#8221;&lt;name&gt;&#8221;<\/p>\n<h4><span class=\"ez-toc-section\" id=\"38_RestoreRollback_Magento_2_Code\"><\/span>38) Restore\/Rollback Magento 2 Code<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento setup:rollback -c 566566565_filesystem_code.tgz<\/p>\n<h4><span class=\"ez-toc-section\" id=\"39_RestoreRollback_Magento_2_Database\"><\/span>39) Restore\/Rollback Magento 2 Database<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento setup:rollback -d 767767676_db.sql<\/p>\n<h4><span class=\"ez-toc-section\" id=\"40_RestoreRollback_Magento_2_Media\"><\/span>40) Restore\/Rollback Magento 2 Media<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento setup:rollback -m 1470820565_filesystem_media.tgz<\/p>\n<h4><span class=\"ez-toc-section\" id=\"41_Enable_Maintenance_Mode\"><\/span>41) Enable Maintenance Mode<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento maintenance:enable<\/p>\n<h4><span class=\"ez-toc-section\" id=\"42_Disable_Maintenance_Mode\"><\/span>42) Disable Maintenance Mode<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento maintenance:disable<\/p>\n<h4><span class=\"ez-toc-section\" id=\"43_Enable_Maintenance_Mode_For_All_ClientsIPs_Except\"><\/span>43) Enable Maintenance Mode For All Clients(IPs) Except<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento maintenance:enable &#8211;ip=192.0.2.10 &#8211;ip=192.0.2.11<\/p>\n<h4><span class=\"ez-toc-section\" id=\"44_Disable_Maintenance_Mode_For_All_ClientsIPs_Except\"><\/span>44) Disable Maintenance Mode For All Clients(IPs) Except<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento maintenance:disable &#8211;ip=192.0.2.10 &#8211;ip=192.0.2.11<\/p>\n<h4><span class=\"ez-toc-section\" id=\"45_Show_the_Current_Status_of_Maintenance_Mode\"><\/span>45) Show the Current Status of Maintenance Mode<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento maintenance:status<\/p>\n<h4><span class=\"ez-toc-section\" id=\"46_Exempt_IP_Addresses_From_Maintainance_Mode\"><\/span>46) Exempt IP Addresses From Maintainance Mode<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento maintenance:allow-ips 192.168.1.10 192.168.1.11<\/p>\n<h4><span class=\"ez-toc-section\" id=\"47_Displays_the_Magento_Admin_URI\"><\/span>47) Displays the Magento Admin URI<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento info:adminuri<\/p>\n<h4><span class=\"ez-toc-section\" id=\"48_Displays_the_List_of_Available_Language_Locales\"><\/span>48) Displays the List of Available Language Locales<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento info:language:list<\/p>\n<h4><span class=\"ez-toc-section\" id=\"49_Displays_the_List_of_Available_Timezones\"><\/span>49) Displays the List of Available Timezones<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento info:timezone:list<\/p>\n<h4><span class=\"ez-toc-section\" id=\"50_Displays_the_List_of_Available_Currencies\"><\/span>50) Displays the List of Available Currencies<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>php bin\/magento info:currency:list<\/p>\n<p>We hope this is useful for you \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Magento 2\u00a0is a powerful e-commerce platform that provides a flexible and scalable architecture for building custom online stores. In this&#8230;<\/p>\n","protected":false},"author":3,"featured_media":869,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,7],"tags":[30,11],"class_list":["post-61","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development","category-magento2-extensions","tag-development","tag-magento-2"],"jetpack_featured_media_url":"https:\/\/www.webshouters.com\/blog\/wp-content\/uploads\/2023\/01\/Magento2.png","_links":{"self":[{"href":"https:\/\/www.webshouters.com\/blog\/wp-json\/wp\/v2\/posts\/61","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webshouters.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webshouters.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webshouters.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webshouters.com\/blog\/wp-json\/wp\/v2\/comments?post=61"}],"version-history":[{"count":7,"href":"https:\/\/www.webshouters.com\/blog\/wp-json\/wp\/v2\/posts\/61\/revisions"}],"predecessor-version":[{"id":954,"href":"https:\/\/www.webshouters.com\/blog\/wp-json\/wp\/v2\/posts\/61\/revisions\/954"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webshouters.com\/blog\/wp-json\/wp\/v2\/media\/869"}],"wp:attachment":[{"href":"https:\/\/www.webshouters.com\/blog\/wp-json\/wp\/v2\/media?parent=61"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webshouters.com\/blog\/wp-json\/wp\/v2\/categories?post=61"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webshouters.com\/blog\/wp-json\/wp\/v2\/tags?post=61"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}