1

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

3

No.

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

example:

composer show drupal/module_name --available
2
  • Tried, im not getting the syntax correct: composer show pathauto/package --available -- tried a bunch of other combinations. Commented 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.
    – mona lisa
    Commented Oct 20, 2022 at 20:50

Your Answer

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

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