2

I've been using the same drushrc.php and aliases.drushrc.php files with Drush 6 and 7 and haven't noticed any problems; however, I also haven't used very complicated Drush configurations in the past.

I'm now using different versions of Drush (6-8) for different sites and am trying to confirm whether there are any significant compatibility issues with configuration files in different versions of Drush. I can't find a conclusive answer anywhere in the Drush documentation; anyone know?

4

Drush configuration files, generally speaking, anyway, only set options for use in various Drush commands. If an unknown option is used directly on the commandline, this will result in an error; however, Drush ignores unknown options that are set in a configuration file. This makes it fairly safe to use the same configuration file for multiple versions of Drush. I have been using the same config file from Drush 5 to present without an issue.

If you do end up with some configuration tricks that only work with specific versions of Drush, you can always make a drush8rc.php file; this will only be loaded by Drush version 8, and will be ignored by all other versions of Drush.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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