drush

Drush is a shell-based application used to control, manipulate, and administer Drupal sites. On the surface, drush is an excellent tool for updating site modules, but here is a more comprehensive list of features for drush:

  • Quick status report (get Drupal site version)
  • Run cron
  • Clear caches
  • Export site databases (SQL dump)
  • Update site code
  • Update Drupal database (run "update.php")
  • Get Info & Download Any Module
  • Enable/Disable/Uninstall Modules
  • Simulate updates/commands
  • Sync environments (perfect for DEV-STAGE-PRODUCTION)
  • plus some modules offer drush add-ons, like Module Builder & Devel, plus many more.

You can see a list of Drush commands available.

View the official list of modules that have Drush add-on commands available.

Jody Lynn's picture

Drush now has variable get, set and delete

Drush has new commands now to manage variables.

Chris, can you add them to the drush commands page?

"Drush vget user" will give you a list of all variable names beginning with 'user' and their values. Useful to see all variable settings for a specific module, or figure out a variable's name.

"Drush vset prep 0" will let you choose from the variables beginning with 'prep' and set one to 0. Useful to quickly change simple variables, for example to disable css preprocessing.

2 comments
tsaw's picture

DRUSH Update Question

Hi Chris,

Love the DRUSH tool!

I have been using it as much as I can and each time am finding new things and ways to take advantage of it.

I have a question - concerning the update and updatecode functions. I didn't see any detailed docs on recommended usage on this and was wondering if you or anyone else that is more knowledgeable on it, could show us the proper way to use these functions?

For example do we put the site in maintenance mode, disable modules prior to update, etc.

Thanks so much!

Tim

27 comments
Chris Charlton's picture

Are you a Drush beginner or a pro?

Beginner
48% (29 votes)
Above Beginner
36% (22 votes)
Almost Pro
10% (6 votes)
Drush Pro
7% (4 votes)
Total votes: 61
Login to post comments
Chris Charlton's picture

What features/uses of Drush are you interested in learning?

What in Drush are you learning, or would like to learn? Please comment below.

11 comments
Chris Charlton's picture

Drush commands reference

Run drush help [command] to view command-specific help.

Examples:

drush dl cck zen Download CCK module and Zen theme.
drush --uri=http://example.com status Show status command for the example.com multi-site.
drush help --pipe A space delimited list of commands

Read more
Chris Charlton's picture

Do you use drush on local or remote environments, or both?

I use drush locally.
18% (18 votes)
I use drush on remote servers.
16% (16 votes)
I use drush on both local and remote environments.
65% (64 votes)
Total votes: 98
1 comment
Chris Charlton's picture

What platform do you use drush on?

Linux
50% (50 votes)
Mac OS X / Unix
15% (15 votes)
Windows
3% (3 votes)
Other
0% (0 votes)
More than one operating system
33% (33 votes)
Total votes: 101
Login to post comments

Drush is a shell-based application used to control, manipulate, and administer Drupal sites. On the surface, drush is an excellent tool for updating site modules, but here is a more comprehensive list of features for drush:

  • Quick status report (get Drupal site version)
  • Run cron
  • Clear caches
  • Export site databases (SQL dump)
  • Update site code
  • Update Drupal database (run "update.php")
  • Get Info & Download Any Module
  • Enable/Disable/Uninstall Modules
  • Simulate updates/commands
  • Sync environments (perfect for DEV-STAGE-PRODUCTION)
  • plus some modules offer drush add-ons, like Module Builder & Devel, plus many more.

You can see a list of Drush commands available.

View the official list of modules that have Drush add-on commands available.

Syndicate content