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
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
add a comment |
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
add a comment |
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
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
magento2 installation command-line
edited Jun 22 '16 at 20:19
Marius♦
167k28319686
167k28319686
asked Jun 22 '16 at 20:11
Xenocide8998Xenocide8998
979825
979825
add a comment |
add a comment |
5 Answers
5
active
oldest
votes
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
this is definitely an improvement
– Xenocide8998
Jun 23 '16 at 13:41
add a comment |
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
add a comment |
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
add a comment |
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.
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:upgradethis won't enable any previously disabled module.setup:upgradeis required after placing extensions dir. So first the extension has to be inapp/code/and then enabling these extensions bymodule:enablethen lastly runningmodule:enable
– Mohammed Joraid
Jul 24 '18 at 16:10
add a comment |
Another way would be:
- Open
app/etc/config.php - That file returns an array of modules with the module name as key and
1or0as value.1indicates enabled0indicates 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/folderFinally, run setup upgrade command:
php bin/magento setup:upgrade
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
this is definitely an improvement
– Xenocide8998
Jun 23 '16 at 13:41
add a comment |
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
this is definitely an improvement
– Xenocide8998
Jun 23 '16 at 13:41
add a comment |
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
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
answered Jun 22 '16 at 20:18
Marius♦Marius
167k28319686
167k28319686
this is definitely an improvement
– Xenocide8998
Jun 23 '16 at 13:41
add a comment |
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
add a comment |
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
add a comment |
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
add a comment |
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
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
edited May 17 '18 at 13:49
answered Nov 27 '17 at 21:50
Xenocide8998Xenocide8998
979825
979825
add a comment |
add a comment |
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
add a comment |
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
add a comment |
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
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
edited 11 mins ago
Community♦
1
1
answered Nov 27 '17 at 22:14
Toan NguyenToan Nguyen
2,0021137
2,0021137
add a comment |
add a comment |
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.
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:upgradethis won't enable any previously disabled module.setup:upgradeis required after placing extensions dir. So first the extension has to be inapp/code/and then enabling these extensions bymodule:enablethen lastly runningmodule:enable
– Mohammed Joraid
Jul 24 '18 at 16:10
add a comment |
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.
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:upgradethis won't enable any previously disabled module.setup:upgradeis required after placing extensions dir. So first the extension has to be inapp/code/and then enabling these extensions bymodule:enablethen lastly runningmodule:enable
– Mohammed Joraid
Jul 24 '18 at 16:10
add a comment |
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.
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.
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:upgradethis won't enable any previously disabled module.setup:upgradeis required after placing extensions dir. So first the extension has to be inapp/code/and then enabling these extensions bymodule:enablethen lastly runningmodule:enable
– Mohammed Joraid
Jul 24 '18 at 16:10
add a comment |
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:upgradethis won't enable any previously disabled module.setup:upgradeis required after placing extensions dir. So first the extension has to be inapp/code/and then enabling these extensions bymodule:enablethen lastly runningmodule: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
add a comment |
Another way would be:
- Open
app/etc/config.php - That file returns an array of modules with the module name as key and
1or0as value.1indicates enabled0indicates 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/folderFinally, run setup upgrade command:
php bin/magento setup:upgrade
add a comment |
Another way would be:
- Open
app/etc/config.php - That file returns an array of modules with the module name as key and
1or0as value.1indicates enabled0indicates 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/folderFinally, run setup upgrade command:
php bin/magento setup:upgrade
add a comment |
Another way would be:
- Open
app/etc/config.php - That file returns an array of modules with the module name as key and
1or0as value.1indicates enabled0indicates 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/folderFinally, run setup upgrade command:
php bin/magento setup:upgrade
Another way would be:
- Open
app/etc/config.php - That file returns an array of modules with the module name as key and
1or0as value.1indicates enabled0indicates 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/folderFinally, run setup upgrade command:
php bin/magento setup:upgrade
answered Nov 19 '18 at 7:40
Mukesh ChapagainMukesh Chapagain
3,88812243
3,88812243
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
