0
votes

Is it possible to create file with sequence of drush commands to be executed? In particular, I would like to write script, that would download and enable more Drupal modules for example script with these lines (pseudocode).

$modules = {"pathauto", "admin_menu", "i18n"}
drush dl $modules;
drush en $modules;

Is it possible without creating custom drush command?

1

1 Answers

0
votes

I have already found solution. I can create a script with Drush API and using drush_invoke command I can call another drush commands.