How do I disable all non-core modules in Magento 2? (in 1 step) Unicorn Meta Zoo #1: Why...

std::is_constructible on incomplete types

Flash for group photos near wall

What's the difference between using dependency injection with a container and using a service locator?

Is Bran literally the world's memory?

Do I need to protect SFP ports and optics from dust/contaminants? If so, how?

Married in secret, can marital status in passport be changed at a later date?

What *exactly* is electrical current, voltage, and resistance?

Book with legacy programming code on a space ship that the main character hacks to escape

How to not starve gigantic beasts

What to do with someone that cheated their way through university and a PhD program?

How to find the right literary agent in the USA?

Trumpet valves, lengths, and pitch

What is the ongoing value of the Kanban board to the developers as opposed to management

Suing a Police Officer Instead of the Police Department

What is this word supposed to be?

Raising a bilingual kid. When should we introduce the majority language?

'Var' does not name a type!

Does Mathematica have an implementation of the Poisson Binomial Distribution?

Map material from china not allowed to leave the country

Why does the Cisco show run command not show the full version, while the show version command does?

How long after the last departure shall the airport stay open for an emergency return?

Is there any hidden 'W' sound after 'comment' in : Comment est-elle?

Does the set of sets which are elements of every set exist?

As an international instructor, should I openly talk about my accent?



How do I disable all non-core modules in Magento 2? (in 1 step)



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar ManaraDisable modules via databaseMake extension install after core modulesIs there any way to disable all extensions in magentoWhat Default Modules I can disable?Module disabled in app/etc/modules is still showing in admin in Disable Modules OutputGood practice regarding core tables relations with modules tablesHow to translate core Magento modules and create a CSV translation file per module?Completely Disable Module - Magento 1.9Disable all custom and Third Party Module in single CommandInstall via cli but exclude some core modules





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















Suppose I want to go back to the code state where only M2 core modules are active.



question: How do I disable all non-core modules in Magento 2? (in 1 step)










share|improve this question





























    0















    Suppose I want to go back to the code state where only M2 core modules are active.



    question: How do I disable all non-core modules in Magento 2? (in 1 step)










    share|improve this question

























      0












      0








      0








      Suppose I want to go back to the code state where only M2 core modules are active.



      question: How do I disable all non-core modules in Magento 2? (in 1 step)










      share|improve this question














      Suppose I want to go back to the code state where only M2 core modules are active.



      question: How do I disable all non-core modules in Magento 2? (in 1 step)







      module extensions






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 3 hours ago









      SNHSNH

      83111




      83111






















          1 Answer
          1






          active

          oldest

          votes


















          0














          One option is to execute



          php bin/magento module:disable $(php bin/magento module:status | grep -vE '^Magento|List of enabled modules:|List of disabled modules:|None|^$')


          It will grep all none core modules and pass them as a list to the disable command



          https://www.michiel-gerritsen.com/disabling-non-magento-modules-magento-2/






          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "479"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f272333%2fhow-do-i-disable-all-non-core-modules-in-magento-2-in-1-step%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            One option is to execute



            php bin/magento module:disable $(php bin/magento module:status | grep -vE '^Magento|List of enabled modules:|List of disabled modules:|None|^$')


            It will grep all none core modules and pass them as a list to the disable command



            https://www.michiel-gerritsen.com/disabling-non-magento-modules-magento-2/






            share|improve this answer




























              0














              One option is to execute



              php bin/magento module:disable $(php bin/magento module:status | grep -vE '^Magento|List of enabled modules:|List of disabled modules:|None|^$')


              It will grep all none core modules and pass them as a list to the disable command



              https://www.michiel-gerritsen.com/disabling-non-magento-modules-magento-2/






              share|improve this answer


























                0












                0








                0







                One option is to execute



                php bin/magento module:disable $(php bin/magento module:status | grep -vE '^Magento|List of enabled modules:|List of disabled modules:|None|^$')


                It will grep all none core modules and pass them as a list to the disable command



                https://www.michiel-gerritsen.com/disabling-non-magento-modules-magento-2/






                share|improve this answer













                One option is to execute



                php bin/magento module:disable $(php bin/magento module:status | grep -vE '^Magento|List of enabled modules:|List of disabled modules:|None|^$')


                It will grep all none core modules and pass them as a list to the disable command



                https://www.michiel-gerritsen.com/disabling-non-magento-modules-magento-2/







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 3 hours ago









                SNHSNH

                83111




                83111






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Magento Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f272333%2fhow-do-i-disable-all-non-core-modules-in-magento-2-in-1-step%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    迭戈·戈丁...

                    A phrase ”follow into" in a context The 2019 Stack Overflow Developer Survey Results Are...

                    1960s short story making fun of James Bond-style spy fiction The 2019 Stack Overflow Developer...