O'Reilly logo

Drush User's Guide by Juan Pablo Novillo Requena

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Drush command structure

Drush ships with a set of grouped commands to perform different tasks. If you are fluent at executing commands in the terminal, you can skip this section and start exploring the details of each Drush command in the next chapter. If not, you should understand what arguments and options are to a command and how they affect its behavior.

Executing a command

Let's start with a very simple command such as core-status, which prints configuration information about Drush and, if applicable, a Drupal site. If executed at the root of a Drupal directory with its database configured at sites/default/settings.php, the following command would return:

 $drush core-status Drupal version : 7.4 Site URI : http://drupal7.localhost Database ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required