Created
March 4, 2021 09:11
-
-
Save JayKandari/82ec7f3d96d191554d46c9cac8eb5eb1 to your computer and use it in GitHub Desktop.
Drush pm:list filter - Using regular expression to filter specific modules to show in `drush pml` command.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drush pml --filter='name~=#(mymodule1|mymodule2|mymodule3)#i' | |
# Output: | |
# -------------- ------------------------------------------- ---------- --------- | |
# Package Name Status Version | |
# -------------- ------------------------------------------- ---------- --------- | |
# My package My Module (mymodule1) Disabled | |
# Another pack Another module (mymodule2) Enabled | |
# My package My Module (mymodule3) Disabled | |
# -------------- ------------------------------------------- ---------- --------- | |
Drush Commandline Tool 10.6.2
drush pm:list --filter='name~=#(webform|xmlsitemap|path_redirect_import)#i'
Works
With the help from @liberatr, apparently doing a drush cr
did the trick! My 10.4.3 now works!
If you are having trouble drush cr
before you run this command. see drush-ops/drush#4264
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of Drush? I'm using 10.4.3 and although the help says
--filter
is allowed, I getThe "--filter" option does not exist.