enable multiple modules for same namespace The Next CEO of Stack OverflowMagento 2 - There are...
What was Carter Burkes job for "the company" in "Aliens"?
Defamation due to breach of confidentiality
Can someone explain this formula for calculating Manhattan distance?
Physiological effects of huge anime eyes
How to use ReplaceAll on an expression that contains a rule
AB diagonalizable then BA also diagonalizable
Is it okay to majorly distort historical facts while writing a fiction story?
Where do students learn to solve polynomial equations these days?
Traveling with my 5 year old daughter (as the father) without the mother from Germany to Mexico
Is French Guiana a (hard) EU border?
Audio Conversion With ADS1243
Can I board the first leg of the flight without having final country's visa?
Is there a difference between "Fahrstuhl" and "Aufzug"?
Is it professional to write unrelated content in an almost-empty email?
Why doesn't UK go for the same deal Japan has with EU to resolve Brexit?
What is the difference between "hamstring tendon" and "common hamstring tendon"?
Is there an equivalent of cd - for cp or mv
what's the use of '% to gdp' type of variables?
How to get the last not-null value in an ordered column of a huge table?
Help! I cannot understand this game’s notations!
Does Germany produce more waste than the US?
Getting Stale Gas Out of a Gas Tank w/out Dropping the Tank
Can Sneak Attack be used when hitting with an improvised weapon?
Prepend last line of stdin to entire stdin
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 enabled
0indicates 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
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 2 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 enabled
0indicates 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
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 enabled
0indicates 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
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 enabled
0indicates 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
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 enabled
0indicates 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
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
