0

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 Answer 1

0

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

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.