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

Purpose of level-shifter with same in and out voltages

Players Circumventing the limitations of Wish

What day is it again?

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

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

Is it professional to write unrelated content in an almost-empty email?

My ex-girlfriend uses my Apple ID to login to her iPad, do I have to give her my Apple ID password to reset it?

Is there a way to save my career from absolute disaster?

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

Aggressive Under-Indexing and no data for missing index

Can I use the word “Senior” as part of a job title directly in German?

Help/tips for a first time writer?

Would a completely good Muggle be able to use a wand?

How to use ReplaceAll on an expression that contains a rule

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

what's the use of '% to gdp' type of variables?

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

Defamation due to breach of confidentiality

Prepend last line of stdin to entire stdin

Computationally populating tables with probability data

Do I need to write [sic] when including a quotation with a number less than 10 that isn't written out?

Is it okay to majorly distort historical facts while writing a fiction story?

Calculate the Mean mean of two numbers

How did Beeri the Hittite come up with naming his daughter Yehudit?



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 30 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

                                        Best approach to update all entries in a list that is paginated?Best way to add items to a paginated listChoose Your Country: Best Usability approachUpdate list when a user is viewing the list without annoying themWhen would the best day to update your webpage be?What should happen when I add a Row to a paginated, sorted listShould I adopt infinite scrolling or classical pagination?How to show user that page objects automatically updateWhat is the best location to locate the comments section in a list pageBest way to combine filtering and selecting items in a listWhen one of two inputs must be updated to satisfy a consistency criteria, which should you update (if at all)?

                                        Вунгтау (аеропорт) Загальні відомості | Див. також | Посилання | Навігаційне меню10°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.0833310°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.083337731608Vinh AirportVinh airport facelift improves serviceвиправивши або дописавши їївиправивши або дописавши їїр

                                        Тонконіг бульбистий Зміст Опис | Поширення | Екологія | Господарське значення | Примітки | Див. також | Література | Джерела | Посилання | Навігаційне меню1114601320038-241116202404kew-435458Poa bulbosaЭлектронный каталог сосудистых растений Азиатской России [Електронний каталог судинних рослин Азіатської Росії]Малышев Л. Л. Дикие родичи культурных растений. Poa bulbosa L. - Мятлик луковичный. [Малишев Л. Л. Дикі родичи культурних рослин. Poa bulbosa L. - Тонконіг бульбистий.]Мятлик (POA) Сем. Злаки (Мятликовые) [Тонконіг (POA) Род. Злаки (Тонконогові)]Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Description from Flora of China) [Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Опис від Флора Китаю)]Poa bulbosa L. – lipnice cibulkatá / lipnica cibulkatáPoa bulbosa в базі даних Poa bulbosa на сайті Poa bulbosa в базі даних «Global Biodiversity Information Facility» (GBIF)Poa bulbosa в базі даних «Euro + Med PlantBase» — інформаційному ресурсі для Євро-середземноморського розмаїття рослинPoa bulbosa L. на сайті «Плантариум»