enable multiple modules for same namespace The Next CEO of Stack OverflowMagento 2 - There are no commands defined in the “setup” namespace on windowsGet custom command line parameter during module install() processMagento2: Setup script doesn't workDisable all custom and Third Party Module in single CommandInstall via cli but exclude some core modulesMissing permission in /var folders after enable moduleMagento 2: Magento UI is not working properly. After deleting all productsUnable to install Modules Magento 2.2 ( Readiness Check Error)Difference between php bin/magento and bin/magentoMagento 2 Sequence - Multiple Modules Overriding Same Template

Is there an equivalent of cd - for cp or mv

IC has pull-down resistors on SMBus lines?

Can I board the first leg of the flight without having final country's visa?

Easy to read palindrome checker

What was Carter Burkes job for "the company" in "Aliens"?

Purpose of level-shifter with same in and out voltages

What day is it again?

Redefining symbol midway through a document

Is "three point ish" an acceptable use of ish?

How to find image of a complex function with given constraints?

What happened in Rome, when the western empire "fell"?

What difference does it make using sed with/without whitespaces?

Do scriptures give a method to recognize a truly self-realized person/jivanmukta?

Which one is the true statement?

What does "shotgun unity" refer to here in this sentence?

(How) Could a medieval fantasy world survive a magic-induced "nuclear winter"?

What would be the main consequences for a country leaving the WTO?

Getting Stale Gas Out of a Gas Tank w/out Dropping the Tank

In the "Harry Potter and the Order of the Phoenix" videogame, what potion is used to sabotage Umbridge's speakers?

What steps are necessary to read a Modern SSD in Medieval Europe?

I dug holes for my pergola too wide

Why doesn't UK go for the same deal Japan has with EU to resolve Brexit?

Can Sneak Attack be used when hitting with an improvised weapon?

Why the last AS PATH item always is `I` or `?`?



enable multiple modules for same namespace



The Next CEO of Stack OverflowMagento 2 - There are no commands defined in the “setup” namespace on windowsGet custom command line parameter during module install() processMagento2: Setup script doesn't workDisable all custom and Third Party Module in single CommandInstall via cli but exclude some core modulesMissing permission in /var folders after enable moduleMagento 2: Magento UI is not working properly. After deleting all productsUnable to install Modules Magento 2.2 ( Readiness Check Error)Difference between php bin/magento and bin/magentoMagento 2 Sequence - Multiple Modules Overriding Same Template










3















I am installing a few modules one by one into my magento 2 application. Can we enable all modules in the same namespace with one command?



Right now I am using:



php bin/magento module:enable Vendor_MyModule1
php bin/magento module:enable Vendor_MyModule2
php bin/magento module:enable Vendor_MyModule3


Is there a way I can do this with a wildcard?



php bin/magento module:enable Vendor_*









share|improve this question




























    3















    I am installing a few modules one by one into my magento 2 application. Can we enable all modules in the same namespace with one command?



    Right now I am using:



    php bin/magento module:enable Vendor_MyModule1
    php bin/magento module:enable Vendor_MyModule2
    php bin/magento module:enable Vendor_MyModule3


    Is there a way I can do this with a wildcard?



    php bin/magento module:enable Vendor_*









    share|improve this question


























      3












      3








      3


      1






      I am installing a few modules one by one into my magento 2 application. Can we enable all modules in the same namespace with one command?



      Right now I am using:



      php bin/magento module:enable Vendor_MyModule1
      php bin/magento module:enable Vendor_MyModule2
      php bin/magento module:enable Vendor_MyModule3


      Is there a way I can do this with a wildcard?



      php bin/magento module:enable Vendor_*









      share|improve this question
















      I am installing a few modules one by one into my magento 2 application. Can we enable all modules in the same namespace with one command?



      Right now I am using:



      php bin/magento module:enable Vendor_MyModule1
      php bin/magento module:enable Vendor_MyModule2
      php bin/magento module:enable Vendor_MyModule3


      Is there a way I can do this with a wildcard?



      php bin/magento module:enable Vendor_*






      magento2 installation command-line






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 22 '16 at 20:19









      Marius

      167k28319686




      167k28319686










      asked Jun 22 '16 at 20:11









      Xenocide8998Xenocide8998

      979825




      979825




















          5 Answers
          5






          active

          oldest

          votes


















          7














          You cannot use wildcards but you can enable all of them from one command like this:



          php bin/magento module:enable Vendor_MyModule1 Vendor_MyModule2 Vendor_MyModule3





          share|improve this answer























          • this is definitely an improvement

            – Xenocide8998
            Jun 23 '16 at 13:41


















          4














          You can use the the --all flag to enable all available modules



           php bin/magento module:enable --all


          This of course is if you don't mind enabling all modules. Tested in magento 2.1.x






          share|improve this answer
































            4














            Short answer: Yes, you can.



            But it is *nix command trick, Magento 2 does not support it by default as Marius answer.



            You can execute the following command and it can do what you want.



            php bin/magento module:status | grep VendorName_ | grep -v List | grep -v None | grep -v -e '^$'| xargs php bin/magento module:enable


            Cheers.




            I love this! Thank you. However I would add something:



            bin/magento module:status | grep MageWorx_ | grep -v List | grep -v None | grep -v -e '^$'| xargs php bin/magento module:enable --clear-static-content





            share|improve this answer
































              0














              In case you have copied an entire namespace directory(ies) and want Magento to install all those at one shot then do the following :



              php bin/magento setup:upgrade



              This way you don't have to mention all modules names.






              share|improve this answer

























              • This is just perfect if you want to install magento with a lot of custom modules on a empty database. _<sequence> _ is just so bad with that...

                – Pol Ravalitera
                Sep 6 '17 at 13:56











              • php bin/magento setup:upgrade this won't enable any previously disabled module. setup:upgrade is required after placing extensions dir. So first the extension has to be in app/code/ and then enabling these extensions by module:enable then lastly running module:enable

                – Mohammed Joraid
                Jul 24 '18 at 16:10



















              0














              Another way would be:



              • Open app/etc/config.php

              • That file returns an array of modules with the module name as key and 1 or 0 as value.


                • 1 indicates enabled


                • 0 indicates disabled


              • You can find the modules that you want to disable and set their respective value to 0.


              • Here's an example:



                <?php
                return [
                'modules' => [
                ...
                ...
                'Vendor_MyModule1' => 0,
                'Vendor_MyModule2' => 0,
                'Vendor_MyModule3' => 0,
                ...
                ...



              • After that, open terminal and go to your magento root directory.



                cd /path/to/your/magento/root/folder



              • Finally, run setup upgrade command:



                php bin/magento setup:upgrade






              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%2f122356%2fenable-multiple-modules-for-same-namespace%23new-answer', 'question_page');

                );

                Post as a guest















                Required, but never shown

























                5 Answers
                5






                active

                oldest

                votes








                5 Answers
                5






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                7














                You cannot use wildcards but you can enable all of them from one command like this:



                php bin/magento module:enable Vendor_MyModule1 Vendor_MyModule2 Vendor_MyModule3





                share|improve this answer























                • this is definitely an improvement

                  – Xenocide8998
                  Jun 23 '16 at 13:41















                7














                You cannot use wildcards but you can enable all of them from one command like this:



                php bin/magento module:enable Vendor_MyModule1 Vendor_MyModule2 Vendor_MyModule3





                share|improve this answer























                • this is definitely an improvement

                  – Xenocide8998
                  Jun 23 '16 at 13:41













                7












                7








                7







                You cannot use wildcards but you can enable all of them from one command like this:



                php bin/magento module:enable Vendor_MyModule1 Vendor_MyModule2 Vendor_MyModule3





                share|improve this answer













                You cannot use wildcards but you can enable all of them from one command like this:



                php bin/magento module:enable Vendor_MyModule1 Vendor_MyModule2 Vendor_MyModule3






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jun 22 '16 at 20:18









                MariusMarius

                167k28319686




                167k28319686












                • this is definitely an improvement

                  – Xenocide8998
                  Jun 23 '16 at 13:41

















                • this is definitely an improvement

                  – Xenocide8998
                  Jun 23 '16 at 13:41
















                this is definitely an improvement

                – Xenocide8998
                Jun 23 '16 at 13:41





                this is definitely an improvement

                – Xenocide8998
                Jun 23 '16 at 13:41













                4














                You can use the the --all flag to enable all available modules



                 php bin/magento module:enable --all


                This of course is if you don't mind enabling all modules. Tested in magento 2.1.x






                share|improve this answer





























                  4














                  You can use the the --all flag to enable all available modules



                   php bin/magento module:enable --all


                  This of course is if you don't mind enabling all modules. Tested in magento 2.1.x






                  share|improve this answer



























                    4












                    4








                    4







                    You can use the the --all flag to enable all available modules



                     php bin/magento module:enable --all


                    This of course is if you don't mind enabling all modules. Tested in magento 2.1.x






                    share|improve this answer















                    You can use the the --all flag to enable all available modules



                     php bin/magento module:enable --all


                    This of course is if you don't mind enabling all modules. Tested in magento 2.1.x







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited May 17 '18 at 13:49

























                    answered Nov 27 '17 at 21:50









                    Xenocide8998Xenocide8998

                    979825




                    979825





















                        4














                        Short answer: Yes, you can.



                        But it is *nix command trick, Magento 2 does not support it by default as Marius answer.



                        You can execute the following command and it can do what you want.



                        php bin/magento module:status | grep VendorName_ | grep -v List | grep -v None | grep -v -e '^$'| xargs php bin/magento module:enable


                        Cheers.




                        I love this! Thank you. However I would add something:



                        bin/magento module:status | grep MageWorx_ | grep -v List | grep -v None | grep -v -e '^$'| xargs php bin/magento module:enable --clear-static-content





                        share|improve this answer





























                          4














                          Short answer: Yes, you can.



                          But it is *nix command trick, Magento 2 does not support it by default as Marius answer.



                          You can execute the following command and it can do what you want.



                          php bin/magento module:status | grep VendorName_ | grep -v List | grep -v None | grep -v -e '^$'| xargs php bin/magento module:enable


                          Cheers.




                          I love this! Thank you. However I would add something:



                          bin/magento module:status | grep MageWorx_ | grep -v List | grep -v None | grep -v -e '^$'| xargs php bin/magento module:enable --clear-static-content





                          share|improve this answer



























                            4












                            4








                            4







                            Short answer: Yes, you can.



                            But it is *nix command trick, Magento 2 does not support it by default as Marius answer.



                            You can execute the following command and it can do what you want.



                            php bin/magento module:status | grep VendorName_ | grep -v List | grep -v None | grep -v -e '^$'| xargs php bin/magento module:enable


                            Cheers.




                            I love this! Thank you. However I would add something:



                            bin/magento module:status | grep MageWorx_ | grep -v List | grep -v None | grep -v -e '^$'| xargs php bin/magento module:enable --clear-static-content





                            share|improve this answer















                            Short answer: Yes, you can.



                            But it is *nix command trick, Magento 2 does not support it by default as Marius answer.



                            You can execute the following command and it can do what you want.



                            php bin/magento module:status | grep VendorName_ | grep -v List | grep -v None | grep -v -e '^$'| xargs php bin/magento module:enable


                            Cheers.




                            I love this! Thank you. However I would add something:



                            bin/magento module:status | grep MageWorx_ | grep -v List | grep -v None | grep -v -e '^$'| xargs php bin/magento module:enable --clear-static-content






                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited 11 mins ago









                            Community

                            1




                            1










                            answered Nov 27 '17 at 22:14









                            Toan NguyenToan Nguyen

                            2,0021137




                            2,0021137





















                                0














                                In case you have copied an entire namespace directory(ies) and want Magento to install all those at one shot then do the following :



                                php bin/magento setup:upgrade



                                This way you don't have to mention all modules names.






                                share|improve this answer

























                                • This is just perfect if you want to install magento with a lot of custom modules on a empty database. _<sequence> _ is just so bad with that...

                                  – Pol Ravalitera
                                  Sep 6 '17 at 13:56











                                • php bin/magento setup:upgrade this won't enable any previously disabled module. setup:upgrade is required after placing extensions dir. So first the extension has to be in app/code/ and then enabling these extensions by module:enable then lastly running module:enable

                                  – Mohammed Joraid
                                  Jul 24 '18 at 16:10
















                                0














                                In case you have copied an entire namespace directory(ies) and want Magento to install all those at one shot then do the following :



                                php bin/magento setup:upgrade



                                This way you don't have to mention all modules names.






                                share|improve this answer

























                                • This is just perfect if you want to install magento with a lot of custom modules on a empty database. _<sequence> _ is just so bad with that...

                                  – Pol Ravalitera
                                  Sep 6 '17 at 13:56











                                • php bin/magento setup:upgrade this won't enable any previously disabled module. setup:upgrade is required after placing extensions dir. So first the extension has to be in app/code/ and then enabling these extensions by module:enable then lastly running module:enable

                                  – Mohammed Joraid
                                  Jul 24 '18 at 16:10














                                0












                                0








                                0







                                In case you have copied an entire namespace directory(ies) and want Magento to install all those at one shot then do the following :



                                php bin/magento setup:upgrade



                                This way you don't have to mention all modules names.






                                share|improve this answer















                                In case you have copied an entire namespace directory(ies) and want Magento to install all those at one shot then do the following :



                                php bin/magento setup:upgrade



                                This way you don't have to mention all modules names.







                                share|improve this answer














                                share|improve this answer



                                share|improve this answer








                                edited Mar 17 '18 at 11:29









                                Teja Bhagavan Kollepara

                                3,00841949




                                3,00841949










                                answered Sep 20 '16 at 5:06









                                TheDeepakTheDeepak

                                164




                                164












                                • This is just perfect if you want to install magento with a lot of custom modules on a empty database. _<sequence> _ is just so bad with that...

                                  – Pol Ravalitera
                                  Sep 6 '17 at 13:56











                                • php bin/magento setup:upgrade this won't enable any previously disabled module. setup:upgrade is required after placing extensions dir. So first the extension has to be in app/code/ and then enabling these extensions by module:enable then lastly running module:enable

                                  – Mohammed Joraid
                                  Jul 24 '18 at 16:10


















                                • This is just perfect if you want to install magento with a lot of custom modules on a empty database. _<sequence> _ is just so bad with that...

                                  – Pol Ravalitera
                                  Sep 6 '17 at 13:56











                                • php bin/magento setup:upgrade this won't enable any previously disabled module. setup:upgrade is required after placing extensions dir. So first the extension has to be in app/code/ and then enabling these extensions by module:enable then lastly running module:enable

                                  – Mohammed Joraid
                                  Jul 24 '18 at 16:10

















                                This is just perfect if you want to install magento with a lot of custom modules on a empty database. _<sequence> _ is just so bad with that...

                                – Pol Ravalitera
                                Sep 6 '17 at 13:56





                                This is just perfect if you want to install magento with a lot of custom modules on a empty database. _<sequence> _ is just so bad with that...

                                – Pol Ravalitera
                                Sep 6 '17 at 13:56













                                php bin/magento setup:upgrade this won't enable any previously disabled module. setup:upgrade is required after placing extensions dir. So first the extension has to be in app/code/ and then enabling these extensions by module:enable then lastly running module:enable

                                – Mohammed Joraid
                                Jul 24 '18 at 16:10






                                php bin/magento setup:upgrade this won't enable any previously disabled module. setup:upgrade is required after placing extensions dir. So first the extension has to be in app/code/ and then enabling these extensions by module:enable then lastly running module:enable

                                – Mohammed Joraid
                                Jul 24 '18 at 16:10












                                0














                                Another way would be:



                                • Open app/etc/config.php

                                • That file returns an array of modules with the module name as key and 1 or 0 as value.


                                  • 1 indicates enabled


                                  • 0 indicates disabled


                                • You can find the modules that you want to disable and set their respective value to 0.


                                • Here's an example:



                                  <?php
                                  return [
                                  'modules' => [
                                  ...
                                  ...
                                  'Vendor_MyModule1' => 0,
                                  'Vendor_MyModule2' => 0,
                                  'Vendor_MyModule3' => 0,
                                  ...
                                  ...



                                • After that, open terminal and go to your magento root directory.



                                  cd /path/to/your/magento/root/folder



                                • Finally, run setup upgrade command:



                                  php bin/magento setup:upgrade






                                share|improve this answer



























                                  0














                                  Another way would be:



                                  • Open app/etc/config.php

                                  • That file returns an array of modules with the module name as key and 1 or 0 as value.


                                    • 1 indicates enabled


                                    • 0 indicates disabled


                                  • You can find the modules that you want to disable and set their respective value to 0.


                                  • Here's an example:



                                    <?php
                                    return [
                                    'modules' => [
                                    ...
                                    ...
                                    'Vendor_MyModule1' => 0,
                                    'Vendor_MyModule2' => 0,
                                    'Vendor_MyModule3' => 0,
                                    ...
                                    ...



                                  • After that, open terminal and go to your magento root directory.



                                    cd /path/to/your/magento/root/folder



                                  • Finally, run setup upgrade command:



                                    php bin/magento setup:upgrade






                                  share|improve this answer

























                                    0












                                    0








                                    0







                                    Another way would be:



                                    • Open app/etc/config.php

                                    • That file returns an array of modules with the module name as key and 1 or 0 as value.


                                      • 1 indicates enabled


                                      • 0 indicates disabled


                                    • You can find the modules that you want to disable and set their respective value to 0.


                                    • Here's an example:



                                      <?php
                                      return [
                                      'modules' => [
                                      ...
                                      ...
                                      'Vendor_MyModule1' => 0,
                                      'Vendor_MyModule2' => 0,
                                      'Vendor_MyModule3' => 0,
                                      ...
                                      ...



                                    • After that, open terminal and go to your magento root directory.



                                      cd /path/to/your/magento/root/folder



                                    • Finally, run setup upgrade command:



                                      php bin/magento setup:upgrade






                                    share|improve this answer













                                    Another way would be:



                                    • Open app/etc/config.php

                                    • That file returns an array of modules with the module name as key and 1 or 0 as value.


                                      • 1 indicates enabled


                                      • 0 indicates disabled


                                    • You can find the modules that you want to disable and set their respective value to 0.


                                    • Here's an example:



                                      <?php
                                      return [
                                      'modules' => [
                                      ...
                                      ...
                                      'Vendor_MyModule1' => 0,
                                      'Vendor_MyModule2' => 0,
                                      'Vendor_MyModule3' => 0,
                                      ...
                                      ...



                                    • After that, open terminal and go to your magento root directory.



                                      cd /path/to/your/magento/root/folder



                                    • Finally, run setup upgrade command:



                                      php bin/magento setup:upgrade







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Nov 19 '18 at 7:40









                                    Mukesh ChapagainMukesh Chapagain

                                    3,88812243




                                    3,88812243



























                                        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%2f122356%2fenable-multiple-modules-for-same-namespace%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

                                        Jet Time Laivasto | Lähteet | Aiheesta muualla | NavigointivalikkoJet Time - The CompanyThe CompanyManagementJet Time aloittaa lauantaina Suomi-rekisterissä olevalla Boeing 737 -koneellaJettime Finland Fleet Details and HistoryJettime Fleet Details and HistoryRegional Jet OÜ takes over ATR production for SASJet Time Returns To Its Core BusinessYhtiön kotisivutlaajentamalla

                                        Olympian arkeologinen museo Sisällysluettelo Historia ja rakennus | Kokoelmat | Lähteet | Aiheesta muualla | Navigointivalikko37°38′36″N, 21°37′46″EInfobox OKArchaeological Museum of Olympia: HistoryArchaeological Museum of Olympia: DescriptionΜουσείο Ιστορίας των Ολυμπιακών Αγώνων της Αρχαιότητας: ΙστορικόArchaeological Museum of Olympia

                                        Äpy Sisällysluettelo Äpyt kautta historian | Esimerkkejä Äpy-huumorista | Katso myös | Kirjallisuutta | Aiheesta muualla | Navigointivalikkowww.äpy.fi