{"id":390659,"date":"2023-08-03T08:07:36","date_gmt":"2023-08-03T08:07:36","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=390659"},"modified":"2026-02-11T13:44:26","modified_gmt":"2026-02-11T13:44:26","slug":"useful-commands-list-magento-2","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/","title":{"rendered":"Useful Commands in Magento 2"},"content":{"rendered":"\n<p>We&#8217;ll explore the most Useful Commands in Magento 2, guiding you through essential CLI tasks to efficiently manage and optimize your Magento setup.<\/p>\n\n\n\n<p>In Magento 2, commands are used to perform various administrative tasks, manage the application, and facilitate development.<\/p>\n\n\n\n<p>These commands are typically run from the <a href=\"https:\/\/webkul.com\/blog\/how-to-create-custom-command-to-delete-order-in-magento2\/\">command line interface<\/a> (CLI) using the <strong>bin\/magento<\/strong> script.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Magento 2 command :<\/h2>\n\n\n\n<p>In Magento 2, a variety of commands are available to serve different functions.<\/p>\n\n\n\n<p>We run all these commands from the Magento 2 root directory (The directory where Magento 2 is installed).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Open the Magento 2 root directory in terminal :<\/h2>\n\n\n\n<p>You can open the Magento 2 root directory in the terminal by simply opening the Magento 2 root directory folder in the file explorer.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"684\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_104-1200x684.png\" alt=\"Selection_104\" class=\"wp-image-390677\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_104-1200x684.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_104-300x171.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_104-250x143.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_104-768x438.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_104.png 1527w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>Now right-click on the mouse and select the &#8220;Open in Terminal&#8221; option.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"682\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Screenshot-from-2023-07-11-19-01-07-1200x682.png\" alt=\"Screenshot-from-2023-07-11-19-01-07\" class=\"wp-image-390679\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Screenshot-from-2023-07-11-19-01-07-1200x682.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Screenshot-from-2023-07-11-19-01-07-300x171.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Screenshot-from-2023-07-11-19-01-07-250x142.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Screenshot-from-2023-07-11-19-01-07-768x437.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Screenshot-from-2023-07-11-19-01-07.png 1527w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>It will open your Magento 2 root directory in the terminal where you can execute your Magento 2 commands.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1529\" height=\"295\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_105-e1722342282786.png\" alt=\"Selection_105\" class=\"wp-image-390682\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_105-e1722342282786.png 1529w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_105-e1722342282786-300x58.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_105-e1722342282786-1200x232.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_105-e1722342282786-250x48.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_105-e1722342282786-768x148.png 768w\" sizes=\"(max-width: 1529px) 100vw, 1529px\" loading=\"lazy\" \/><figcaption class=\"wp-element-caption\">Magento 2 root directory in terminal<\/figcaption><\/figure>\n\n\n\n<p>Here you can execute your Magento 2 commands.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"990\" height=\"325\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_107-1.png\" alt=\"Execute Magento 2 command\" class=\"wp-image-390689\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_107-1.png 990w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_107-1-300x98.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_107-1-250x82.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_107-1-768x252.png 768w\" sizes=\"(max-width: 990px) 100vw, 990px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Magento 2 basic commands :<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>php bin\/magento deploy:mode:show<\/li>\n\n\n\n<li>php bin\/magento setup:upgrade<\/li>\n\n\n\n<li>php bin\/magento setup:di:compile<\/li>\n\n\n\n<li>php bin\/magento setup:static-content:deploy<\/li>\n\n\n\n<li>php bin\/magento indexer:reindex<\/li>\n\n\n\n<li>php bin\/magento cache:flush<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">deploy:mode:show<\/h3>\n\n\n\n<p>This command uses to check the current execution mode of Magento 2.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">setup:upgrade<\/h3>\n\n\n\n<p>This command uses to install the new modules in Magento 2. It checks for any pending schema or data changes from installed or updated modules.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">setup:di:compile<\/h3>\n\n\n\n<p>This command uses to compile code like Factories, Proxies, Interceptors, etc., and puts them in generated or var\/generation directory.<\/p>\n\n\n\n<p>Here are a couple of things that will happen when you run the setup:di:compile command:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Area Configuration Aggregation \u2013<\/strong>&nbsp;It will optimize the dependency injection configurations according to the area.<\/li>\n\n\n\n<li><strong>Application Code Generation \u2013<\/strong>&nbsp;for Proxies, Factories, Plugins, etc.<\/li>\n\n\n\n<li><strong>Interceptor Generation \u2013<\/strong>&nbsp;It will optimize the code generation of interceptors<\/li>\n\n\n\n<li><strong>Interceptor Cache Generation \u2013<\/strong>&nbsp;It will optimize the cache generation of interceptors.<\/li>\n\n\n\n<li><strong>Service Data Attributes Generation \u2013<\/strong>&nbsp;It will generate extension classes for the data objects.<\/li>\n\n\n\n<li><strong>Repositories Code Generation \u2013<\/strong>&nbsp;It will simply generate the necessary code for APIs.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">setup:static-content:deploy<\/h3>\n\n\n\n<p>This command<strong>&nbsp;<\/strong>helps to write static files to the Magento 2 file system. It uses to optimize static files properly, allowing for a<strong> <\/strong>better user experience.<\/p>\n\n\n\n<p><strong>NOTE:<\/strong> In &#8220;default&#8221; and &#8220;developer&#8221; modes, the system does not necessitate manual static content deployment. <\/p>\n\n\n\n<p>In developer mode, the system automatically deploys static contents on demand without the need for manual static content deployment.<\/p>\n\n\n\n<p>If you still want to deploy in these modes, use -f option: <strong>&#8216;bin\/magento setup:static-content:deploy -f&#8217;<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">indexer: reindex<\/h3>\n\n\n\n<p>The Mangeto <em>indexer: reindex<\/em> command uses to update<strong> <\/strong>the transformed data as the data changes.<\/p>\n\n\n\n<p>Ex : After updating a product price, you need to reindex the data for it to be correctly displayed on the frontend.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">cache:flush<\/h3>\n\n\n\n<p>This command uses to remove all stored data from the cache, so it may affect the performance of other processes&nbsp;using the&nbsp;same storage.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Magento 2 commands are essential for managing and optimizing the platform, enabling users to perform a wide range of tasks efficiently through the command line interface (CLI). <\/p>\n\n\n\n<p>By executing commands such as <br><code>setup:upgrade<\/code><br><code>setup:di:compile<\/code><br><code>setup:static-content:deploy<\/code><br><code>indexer:reindex<\/code><br>and <code>cache:flush<\/code><\/p>\n\n\n\n<p>users can effectively configure their application, optimize performance, and ensure that changes are reflected on the frontend. <\/p>\n\n\n\n<p>Mastering these commands is vital for anyone looking to enhance their Magento 2 experience, streamline operations, and maintain an efficient e-commerce environment. <\/p>\n\n\n\n<p>Ultimately, leveraging these CLI commands empowers users to take full control of their <a href=\"https:\/\/webkul.com\/blog\/installing-magento2-4\/\">Magento 2 installations<\/a> and drive successful online commerce.<\/p>\n\n\n\n<p>Explore more about <a href=\"https:\/\/devdocs.magento.com\/guides\/v2.3\/config-guide\/cli\/config-cli-subcommands.html\">Magento 2 commands<\/a>.<\/p>\n\n\n\n<p>Continue Reading -&gt; <a href=\"https:\/\/webkul.com\/blog\/magento-2-area-codes\/\">Magento 2 Area codes<\/a><\/p>\n\n\n\n<p>Previous Blog -&gt; <a href=\"https:\/\/webkul.com\/blog\/magento-2-architecture\/\">Magento 2 Architecture<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ll explore the most Useful Commands in Magento 2, guiding you through essential CLI tasks to efficiently manage and optimize your Magento setup. In Magento 2, commands are used to perform various administrative tasks, manage the application, and facilitate development. These commands are typically run from the command line interface (CLI) using the bin\/magento script. <a href=\"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":548,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9121],"tags":[6461,15544,15547,2070],"class_list":["post-390659","post","type-post","status-publish","format-standard","hentry","category-magento-2","tag-commands","tag-commands-in-magento-2","tag-magento-2-commands-list","tag-magento2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Useful Commands in Magento 2<\/title>\n<meta name=\"description\" content=\"In Magento 2, commands are used to perform various administrative tasks, manage the application, and facilitate development.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Useful Commands in Magento 2\" \/>\n<meta property=\"og:description\" content=\"In Magento 2, commands are used to perform various administrative tasks, manage the application, and facilitate development.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-03T08:07:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-11T13:44:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_104-1200x684.png\" \/>\n<meta name=\"author\" content=\"Deepesh Kumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Deepesh Kumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/\"},\"author\":{\"name\":\"Deepesh Kumar\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/43552f90bbc8fafb784fe138f6d82a0b\"},\"headline\":\"Useful Commands in Magento 2\",\"datePublished\":\"2023-08-03T08:07:36+00:00\",\"dateModified\":\"2026-02-11T13:44:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/\"},\"wordCount\":604,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_104-1200x684.png\",\"keywords\":[\"commands\",\"Commands in Magento 2\",\"Magento 2 commands list\",\"Magento2\"],\"articleSection\":[\"Magento 2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/\",\"url\":\"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/\",\"name\":\"Useful Commands in Magento 2\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_104-1200x684.png\",\"datePublished\":\"2023-08-03T08:07:36+00:00\",\"dateModified\":\"2026-02-11T13:44:26+00:00\",\"description\":\"In Magento 2, commands are used to perform various administrative tasks, manage the application, and facilitate development.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_104.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_104.png\",\"width\":1527,\"height\":871,\"caption\":\"Selection_104\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Useful Commands in Magento 2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/43552f90bbc8fafb784fe138f6d82a0b\",\"name\":\"Deepesh Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d898f8a790ab5a002f048ad4b4661fda07600235f1338d01ff1fd60152fe4d10?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d898f8a790ab5a002f048ad4b4661fda07600235f1338d01ff1fd60152fe4d10?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Deepesh Kumar\"},\"description\":\"Deepesh Kumar, a proficient Software Engineer, excels in PHP, JavaScript, and database management. Mastery of complex eCommerce systems and Magento&rsquo;s architecture drives innovative solutions and optimizes performance for business success.\",\"url\":\"https:\/\/webkul.com\/blog\/author\/deepeshkumar-mg397\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Useful Commands in Magento 2","description":"In Magento 2, commands are used to perform various administrative tasks, manage the application, and facilitate development.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/","og_locale":"en_US","og_type":"article","og_title":"Useful Commands in Magento 2","og_description":"In Magento 2, commands are used to perform various administrative tasks, manage the application, and facilitate development.","og_url":"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2023-08-03T08:07:36+00:00","article_modified_time":"2026-02-11T13:44:26+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_104-1200x684.png","type":"","width":"","height":""}],"author":"Deepesh Kumar","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Deepesh Kumar","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/"},"author":{"name":"Deepesh Kumar","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/43552f90bbc8fafb784fe138f6d82a0b"},"headline":"Useful Commands in Magento 2","datePublished":"2023-08-03T08:07:36+00:00","dateModified":"2026-02-11T13:44:26+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/"},"wordCount":604,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_104-1200x684.png","keywords":["commands","Commands in Magento 2","Magento 2 commands list","Magento2"],"articleSection":["Magento 2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/","url":"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/","name":"Useful Commands in Magento 2","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_104-1200x684.png","datePublished":"2023-08-03T08:07:36+00:00","dateModified":"2026-02-11T13:44:26+00:00","description":"In Magento 2, commands are used to perform various administrative tasks, manage the application, and facilitate development.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_104.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_104.png","width":1527,"height":871,"caption":"Selection_104"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/useful-commands-list-magento-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Useful Commands in Magento 2"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/43552f90bbc8fafb784fe138f6d82a0b","name":"Deepesh Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d898f8a790ab5a002f048ad4b4661fda07600235f1338d01ff1fd60152fe4d10?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d898f8a790ab5a002f048ad4b4661fda07600235f1338d01ff1fd60152fe4d10?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Deepesh Kumar"},"description":"Deepesh Kumar, a proficient Software Engineer, excels in PHP, JavaScript, and database management. Mastery of complex eCommerce systems and Magento&rsquo;s architecture drives innovative solutions and optimizes performance for business success.","url":"https:\/\/webkul.com\/blog\/author\/deepeshkumar-mg397\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/390659","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/548"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=390659"}],"version-history":[{"count":28,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/390659\/revisions"}],"predecessor-version":[{"id":526004,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/390659\/revisions\/526004"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=390659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=390659"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=390659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}