I have created a patch that implements a 'drush pm list' command to retrieve a list of available modules for a given Drupal installation. It shows shortname, title and author of the module and an installed/not installed flag. An argument can be supplied to filter the list by shortname.

Known issues: depends on allow_url_fopen and php >= 5.2.0.

Comments

moshe weitzman’s picture

Status: Active » Closed (duplicate)

Sounds like a dupe of the newly introduced `status modules` command in drush_extras

stefan freudenberg’s picture

Version: 7.x-1.x-dev » 6.x-2.0-alpha1
Status: Closed (duplicate) » Active
StatusFileSize
new4.9 KB

It's not a duplicate because it retrieves the list of available projects from update.drupal.org, like gem list -r for rubygems. It shows only projects that have a compatible API release. I have attached a new patch for the 6.2 branch. Currently it marks installed modules but I would change it so that it shows enabled/disabled status, too.

My idea is to help drush users to lookup project names when using the command line. Also included in the list is the author's name so you can run drush list | grep author to see all modules written by author. Output format resembles dpkg -l which lists Debian packages.

moshe weitzman’s picture

Status: Active » Needs review

Ah, I see. If this does not consume crazy memory or take 30 seconds to download the gigantic XML file, then it is sweet feature. Reviewers wanted.

greg.1.anderson’s picture

Project: Drush extras » Drush
Version: 6.x-2.0-alpha1 »
Status: Needs review » Fixed

pm-list has been committed in drush project.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.