Drush

From Things and Stuff Wiki
Revision as of 01:00, 23 August 2012 by Milk (talk | contribs)
Jump to navigation Jump to search


Drupal on the command-line. The backend of Aegir is the Provision module for Drush.

Commands

drush pml
  list installed and enabled modules

drush dl [project]
  download project
drush dl sasson-7.x-3.x-dev
  download sasson dev release
drush en [project] -y
  enable project without confirmation

drush dis [project] -y
  disable project

drush pm-uninstall [project]
  remove project from db
 
drush cc
  clear caches

Aliases

Drush Make

Drush Make is part of Drush as of Jan 2012.

.make files specify a recipe for modules, themes and libraries to be downloaded by Drush.

Example make files

Libraries

.make files can specify external libraries to be downloaded using the Libraries API module.

; CKEditor
libraries[ckeditor][download][type]= "get"
libraries[ckeditor][download][url] =  "[ckeditor zip url goes here]"
libraries[ckeditor][directory_name] = "ckeditor"
libraries[ckeditor][destination] = "libraries"

Git

You can get things from git, specify branches, etc.

Also;

Other