Score:1

Is there an equivalent of "drush dl pathauto --select" using "composer require module" name?

kr flag

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.

Score:3
id flag

No.

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

example:

composer show drupal/module_name --available
Patoshi パトシ avatar
kr flag
Tried, im not getting the syntax correct: composer show pathauto/package --available -- tried a bunch of other combinations.
id flag
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.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.