Upcoming changes in CiviCRM Drush integration

Thank you for blogging on civicrm.org! Check out the blog policy for more tips on how to better engage with the community.
Veröffentlicht
2012-04-27 14:20
Written by
Gast (nicht überprüft) - member of the CiviCRM community - view blog guidelines

The CiviCRM Drush integration recently got a fairly major refactoring (issue CRM-9986), and should be available with the CiviCRM 4.2 release.

The main user facing change is that "drush civicrm-cache-clear" has been replaced by integration with the standard drush cache-clear command. You can see it in the options by running "drush cache-clear", or call it directly (this time using the alias "cc") using the command "drush cc civicrm".

There are also aliases added for a number of commands, which should save a few keystrokes. You can examine these using the command "drush help --filter=civicrm".

There are also a number of changes to the code structure - the command callbacks now use the standard conventions making it easier for you to add your own custom pre/post hooks, validation routines are also separated from the main callback. Output (stdout), error/log messages (stderr) and exit codes should also now be more standardized and machine parsable.

Filed under

Comments

Anonymous (nicht überprüft)
2012-04-28 - 17:33

Nicely done!  Thank you!!

Anonymous (nicht überprüft)
2012-04-29 - 18:25

Drush is awesome and getting  it to work better with CiviCRM is awesomer.