Coming from drush 7. I used to install modules using "drush dl module_name --select" and I get a list of module versions I can select to download. Is there an equivalent for this for drupal 8/9 when using compose require to download modules? Currently I need to goto the module page name and copy the composure require line.

1 Answer 1



But, you can use the "show" subcommand to show all available versions.


composer show drupal/module_name --available
  • Tried, im not getting the syntax correct: composer show pathauto/package --available -- tried a bunch of other combinations. Oct 20, 2022 at 19:50
  • What is pathauto/package? I think you mean drupal/pathauto. What I wrote above was a fake example name for a package, the way you wrote module_name above. I will update the answer because of that confusion.
    – cilefen
    Oct 20, 2022 at 20:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.