window.addEventListener('error', function(e) { var msg = e.message || ''; if (msg.indexOf('Failed to fetch dynamically imported module') > -1 || msg.indexOf('Importing a module script failed') > -1) { console.warn('New deployment detected, reloading page...'); window.location.reload(); } }, true);    -          /* Montserrat Variable Font (Weights 100-900) */ @font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype'); } @font-face { font-family: 'Montserrat'; font-style: italic; font-weight: 100 900; font-display: swap; src: url('/fonts/Montserrat/Montserrat-Italic-VariableFont_wght.ttf') format('truetype'); } /* Open Sans Variable Font (Weights 300-800) */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('/fonts/Open_Sans/OpenSans-VariableFont_wdth,wght.ttf') format('truetype'); } @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 300 800; font-display: swap; src: url('/fonts/Open_Sans/OpenSans-Italic-VariableFont_wdth,wght.ttf') format('truetype'); }  The Top 7 Adobe Commerce CLI Commands You Should Know                                /* If Javascript is enabled but the js_disabled cookie or ?js=0 query parameter is active, restore SPA mode */ var hasJsCookie = document.cookie.indexOf('js_disabled=1') !== -1; var hasJsParam = window.location.search.indexOf('js=0') !== -1; if (hasJsCookie || hasJsParam) { if (hasJsCookie) { const host = window.location.hostname; const wildDomain = '.' + host.replace(/^www\./, ''); document.cookie = 'js_disabled=; expires=Thu, 01 Jan 1970 00:00:00 UTC; Max-Age=0; path=/;'; document.cookie = 'js_disabled=; expires=Thu, 01 Jan 1970 00:00:00 UTC; Max-Age=0; path=/; domain=' + host + ';'; document.cookie = 'js_disabled=; expires=Thu, 01 Jan 1970 00:00:00 UTC; Max-Age=0; path=/; domain=' + wildDomain + ';'; } if (hasJsParam) { var cleanUrl = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search.replace(/[?&]js=0&?/g, '').replace(/\?$/, ''); window.location.replace(cleanUrl); } else { window.location.reload(); } }   /* Prevent FOUC for navigation submenus before CSS is loaded */ .navigation ul.submenu { display: none; } /* Prevent FOUC for header and footer before main CSS is loaded */ .page-header, .page-footer { opacity: 0; } /* Prevent FOUC for hidden elements before CSS is loaded */ .is-hidden { display: none !important; } /* Noscript notice banner */ .noscript-warning-banner { background: linear-gradient(135deg, #1e1e24 0%, #121216 100%); color: #ffffff; padding: 16px 24px; border-bottom: 3px solid #ff9800; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; font-size: 14px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); position: relative; z-index: 99999; display: flex; justify-content: center; align-items: center; } .noscript-content { display: flex; align-items: center; gap: 16px; max-width: 1200px; width: 100%; } .noscript-icon { font-size: 24px; line-height: 1; } .noscript-text { flex: 1; } .noscript-text strong { display: block; font-size: 16px; margin-bottom: 4px; color: #ff9800; font-weight: 600; letter-spacing: 0.5px; } .noscript-text p { margin: 0; color: #d1d1e0; line-height: 1.4; }

{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Organization",
      "@id": "https://www.sashas.org/#organization",
      "name": "Extensions Website",
      "url": "https://www.sashas.org/",
      "logo": {
        "@type": "ImageObject",
        "url": "https://www.sashas.org/logo.png",
        "width": 600,
        "height": 60
      },
      "address": {
        "@type": "PostalAddress",
        "addressLocality": "New York",
        "addressRegion": "NY",
        "addressCountry": "US"
      }
    },
    {
      "@type": "WebSite",
      "@id": "https://www.sashas.org/#website",
      "url": "https://www.sashas.org/",
      "name": "Extensions Website",
      "publisher": {
        "@id": "https://www.sashas.org/#organization"
      },
      "potentialAction": {
        "@type": "SearchAction",
        "target": "https://www.sashas.org/search?q={search_term_string}",
        "query-input": "required name=search_term_string"
      }
    },
    {
      "@type": "WebPage",
      "@id": "https://www.sashas.org/blog/the-top-7-magento-2-cli-commands-you-should-know.html/#webpage",
      "url": "https://www.sashas.org/blog/the-top-7-magento-2-cli-commands-you-should-know.html",
      "name": "The Top 7 Adobe Commerce CLI Commands You Should Know",
      "isPartOf": {
        "@id": "https://www.sashas.org/#website"
      },
      "about": {
        "@id": "https://www.sashas.org/#organization"
      }
    },
    {
      "@type": "BreadcrumbList",
      "@id": "https://www.sashas.org/blog/the-top-7-magento-2-cli-commands-you-should-know.html/#breadcrumb",
      "itemListElement": [
        {
          "@type": "ListItem",
          "position": 1,
          "name": "Home",
          "item": "https://www.sashas.org/"
        }
      ]
    },
    {
      "@type": [
        "BlogPosting",
        "FAQPage"
      ],
      "@id": "https://www.sashas.org/blog/the-top-7-magento-2-cli-commands-you-should-know.html/#article",
      "headline": "The Top 7 Adobe Commerce CLI Commands You Should Know",
      "description": "Adobe Commerce is a powerful open-source eCommerce platform that allows you to create and manage an online store. It is easy to use and customize, and it offers a wide range of features and functionality. Adobe Commerce is a great choice for businesses of all sizes.",
      "datePublished": "2017-01-24T03:04:32.000Z",
      "dateModified": "2017-01-24T03:04:32.000Z",
      "author": {
        "@type": "Person",
        "name": "Sasha Shkolnik",
        "url": "https://www.sashas.org/about-us"
      },
      "publisher": {
        "@id": "https://www.sashas.org/#organization"
      },
      "mainEntity": [
        {
          "@type": "Question",
          "name": "What is the key takeaway of The Top 7 Adobe Commerce CLI Commands You Should Know?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "This article explains the best practices, optimizations, and technical details regarding The Top 7 Adobe Commerce CLI Commands You Should Know."
          }
        }
      ]
    }
  ]
}

     ⚠️  JavaScript Required To view this page correctly and access all features of S Group, please enable JavaScript in your browser settings.

         Toggle Nav  [![The S Group Ecommerce Development](https://www.sashas.org/images/logo-gray.svg)](https://www.sashas.org/)     [Experience](https://www.sashas.org/customer-experience.html)   [Catalog Enhancements](https://www.sashas.org/customer-experience/catalog-enhancements.html)
 -  [Cart / Checkout](https://www.sashas.org/customer-experience/cart-checkout.html)
 -  [Customers](https://www.sashas.org/customer-experience/customers.html)
 -  [Shipping](https://www.sashas.org/customer-experience/shipping.html)
 -  [Payments](https://www.sashas.org/customer-experience/payments.html)

  -  [Management](https://www.sashas.org/site-management.html)   [Sales / Fulfillment](https://www.sashas.org/site-management/sales-fulfillment.html)
 -  [Catalog](https://www.sashas.org/site-management/catalog.html)
 -  [Customer Support](https://www.sashas.org/site-management/customer-support.html)
 -  [Marketing / Promotions](https://www.sashas.org/site-management/marketing-promotions.html)
 -  [Content](https://www.sashas.org/site-management/content-management.html)
 -  [Reporting & Analytics](https://www.sashas.org/site-management/reporting-analytics.html)

  -  [Optimization](https://www.sashas.org/optimization.html)   [Performance](https://www.sashas.org/optimization/performance.html)
 -  [Monitoring](https://www.sashas.org/optimization/monitoring.html)
 -  [Troubleshooting / Debugging](https://www.sashas.org/optimization/troubleshooting-debugging.html)

  -  [Blog](https://www.sashas.org/blog)
 -  [About Us](https://www.sashas.org/about-us.html)
              - [My Account](https://www.sashas.org/customer/account/)
 - [Sign Out](https://www.sashas.org/#)
 - [Sign In](https://www.sashas.org/customer/login/)

           0    You have no items in your shopping cart.

      -                      [Home](https://www.sashas.org/)
 - /
 - [Blog](https://www.sashas.org/blog/)
 - /
 - [Adobe Commerce](https://www.sashas.org/blog/?category=adobe%20commerce)
 - /
 - The Top 7 Adobe Commerce CLI Commands You Should Know

   # The Top 7 Adobe Commerce CLI Commands You Should Know

 ![The Top 7 Adobe Commerce CLI Commands You Should Know - Adobe Commerce Technical Guide Guide](https://www.sashas.org/images/blog/img-the-top-7-magento-2-cli-commands-you-should-know.html-i.0.png)

 The Adobe Commerce CLI (Command Line Interface) is a powerful tool that allows you to perform various actions on your store from the command line. In this article, we will review the 7 most important CLI commands for your store. We will be using the Adobe Commerce.1.3 CLI version for this example. Please note that the Adobe Commerce team is constantly updating the CLI, so this information may change in future releases.

 ## How To Find Out Adobe Commerce CLI version?

 ![The Top 7 Adobe Commerce CLI Commands You Should Know - Adobe Commerce Technical Guide Guide](https://www.sashas.org/images/blog/img-the-top-7-magento-2-cli-commands-you-should-know.html-i.1.png)![The Top 7 Adobe Commerce CLI Commands You Should Know - Adobe Commerce Technical Guide Guide](https://www.sashas.org/images/blog/img-the-top-7-magento-2-cli-commands-you-should-know.html-i.2.png)The first thing we need to do is make sure that your Adobe Commerce version is at least 2.1.3, otherwise the commands below will not work. You will need to connect to your Adobe Commerce root folder over SSH as the Adobe Commerce file owner. All commands can be launched as bin/magento {command} or {php_path} bin/magento. In most cases, you will be able to just type php instead of {php_path}. Once you are connected, try running the command php bin/magento. If you see a list of Adobe Commerce CLI commands, then you will need to use php before bin/magento for each command. If you see an error, then there are a few possible issues:

  - bin/magento does not have executable rights. (Use chmod u+x bin/magento to fix this.)
 - You need to use the path to the PHP executable file instead of just php. (You can find the path to the PHP executable file by running the command php -.)
 - There is another kind of error. In this case, you can ask your hosting provider how to correctly run the bin/magento command.

 Once you have access to the list of commands, we need to check your Adobe Commerce CLI version. To do this, run the command:

   php bin/magento --version   This will output your Adobe Commerce CLI version. If you are not sure which version of Adobe Commerce you are running, you can also check the composer.json file in the root of your Adobe Commerce installation. The version of Adobe Commerce is listed under the version key. Once you have confirmed your Adobe Commerce version, you can start using the CLI commands. For more information on the available commands, please refer to the Adobe Commerce CLI documentation.

 ## 1. Enable Maintenance Mode

 The maintenance:enable command enables maintenance mode on your store. This is useful when you are making changes to your store that you don't want customers to see. To enable maintenance mode, run the following command:

   php bin/magento maintenance:enable   ## 2. Upgrade Adobe Commerce

 The setup:upgrade command upgrades Adobe Commerce to the latest version. This command should be run after installing a new Adobe Commerce extension or after upgrading Adobe Commerce. To upgrade Adobe Commerce, run the following command:

   php bin/magento setup:upgrade   ## 3. Compile DI Container

 After php bin/magento setup:upgrade you will need to re-compile Adobe Commerce dependency injection. When you use Adobe Commerce in developer mode you dont need to do it, because in this mode Adobe Commerce makes symlinks for source files.

   php bin/magento setup:di:compile   ## 4. Reindex Data

 The indexer:reindex command reindexes all of the data on your store. This command can be used to improve the performance of your store. To reindex the data, run the following command:

   php bin/magento indexer:reindex   ## 5.  Clear Cache

 This will flush the Adobe Commerce cache. It can be useful when you are unable to flush the cache in the Admin. Adobe Commerce has a lot of cache types when you are using production mode. If you want to remove all cache, as well as compiled code and dependency injection, you can use the following command:

   php bin/magento cache:flush   ## 6.  Generate Static Content

 This command will deploy static content for your store, such as LESS file compilation, JavaScript minification, and concatenation. It needs to be run after LESS/CSS styles are updated, after a Adobe Commerce extension is installed, and after Adobe Commerce is upgraded. Here is a more detailed explanation of what the command does:

  - LESS file compilation: This compiles LESS files into CSS files. This is necessary because LESS files are not directly compatible with browsers.
 - JavaScript minification: This removes unnecessary characters from JavaScript files, making them smaller and faster to load.
 - JavaScript concatenation: This combines multiple JavaScript files into a single file. This can improve performance by reducing the number of HTTP requests that need to be made.

 It is important to run this command after making changes to your store's LESS/CSS styles or after installing a new Adobe Commerce extension. This will ensure that your store's static content is up-to-date and that your store is running as efficiently as possible.

   php bin/magento setup:static-content:deploy   ## 7. DIsable Maintenance Mode

 This command will disable maintenance mode of Adobe Commerce store and it will be accessible online again.

   php bin/magento maintenance:disable   ## The top 7 Adobe Commerce CLI Commands You Should Know: Video

   ID C6MbTmp38r8   These are just a few of the many CLI commands that are available for Adobe Commerce. For more information, please refer to the Adobe Commerce CLI documentation.

       - [Contac Us](https://www.sashas.org/contact/)
 - [Privacy Policy](https://www.sashas.org/privacy-and-refund-policy.html)
 - [Refund Policy](https://www.sashas.org/refund-policy.html)

  © The S Group. All Rights Reserved.