drush core commands


Drush core commands for Drush 6.

  • archive-dump


    Backup your code, files, and database into a single file.


    drush archive-dump

    drush archive-dump

  • archive-restore


    Expand a site archive into a Drupal web site.


    drush archive-restore

    drush archive-restore

  • browse


    Display a link to a given path or open link in a browser.


    drush browse

    drush browse

  • cache-clear


    Clear a specific cache, or all drupal caches.


    drush cache-clear

    drush cache-clear

  • cache-get


    Fetch a cached object and display it.


    drush cache-get

    drush cache-get

  • cache-set


    Cache an object expressed in JSON or var_export() format.


    drush cache-set

    drush cache-set

  • core-config


    Edit drushrc, site alias, and Drupal settings.php files.


    drush core-config

    drush core-config

  • core-cron


    Run all cron hooks in all active modules for specified site.


    drush core-cron

    drush core-cron

  • core-execute


    Execute a shell command. Usually used with a site alias.


    drush core-execute

    drush core-execute

  • core-quick-drupal


    Download, install, serve and login to Drupal with minimal configuration and dependencies.


    drush core-quick-drupal

    drush core-quick-drupal

  • core-requirements


    Provides information about things that may be wrong in your Drupal installation, if any.


    drush core-requirements

    drush core-requirements

  • core-rsync


    Rsync the Drupal tree to/from another server using ssh.


    drush core-rsync

    drush core-rsync

  • core-status


    Provides a birds-eye view of the current Drupal installation, if any.


    drush core-status

    drush core-status

  • core-topic


    Read detailed documentation on a given topic.


    drush core-topic

    drush core-topic

  • drupal-directory


    Return path to a given module/theme directory.


    drush drupal-directory

    drush drupal-directory

  • help


    Print this help message. See `drush help help` for more options.


    drush help

    drush help

  • image-flush


    Flush all derived images for a given style.


    drush image-flush

    drush image-flush

  • php-eval


    Evaluate arbitrary php code after bootstrapping Drupal (if available).


    drush php-eval

    drush php-eval

  • php-script


    Run php script(s).


    drush php-script

    drush php-script

  • queue-list


    Returns a list of all defined queues


    drush queue-list

    drush queue-list

  • queue-run


    Run a specific queue by name


    drush queue-run

    drush queue-run

  • search-index


    Index the remaining search items without wiping the index.


    drush search-index

    drush search-index

  • search-reindex


    Force the search index to be rebuilt.


    drush search-reindex

    drush search-reindex

  • search-status


    Show how many items remain to be indexed out of the total.


    drush search-status

    drush search-status

  • shell-alias


    Print all known shell alias records.


    drush shell-alias

    drush shell-alias

  • site-alias


    Print site alias records for all known site aliases and local sites.


    drush site-alias

    drush site-alias

  • site-install


    Install Drupal along with modules/themes/configuration using the specified install profile.


    drush site-install

    drush site-install

  • site-set


    Set a site alias to work on that will persist for the current session.


    drush site-set

    drush site-set

  • site-ssh


    Connect to a Drupal site's server via SSH for an interactive session or to run a shell command


    drush site-ssh

    drush site-ssh

  • test-clean


    Clean temporary tables and files.


    drush test-clean

    drush test-clean

  • test-run


    Run tests. Note that you must use the --uri option.


    drush test-run

    drush test-run

  • updatedb


    Apply any database updates required (as with running update.php).


    drush updatedb

    drush updatedb

  • updatedb-status


    List any pending database updates.


    drush updatedb-status

    drush updatedb-status

  • usage-send


    Send anonymous Drush usage information to statistics logging site. Usage statistics contain the Drush command name and the Drush option names, but no arguments or option values.


    drush usage-send

    drush usage-send

  • usage-show


    Show Drush usage information that has been logged but not sent. Usage statistics contain the Drush command name and the Drush option names, but no arguments or option values.


    drush usage-show

    drush usage-show

  • variable-delete


    Delete a variable.


    drush variable-delete

    drush variable-delete

  • variable-get


    Get a list of some or all site variables and values.


    drush variable-get

    drush variable-get

  • variable-set


    Set a variable.


    drush variable-set

    drush variable-set

  • version


    Show drush version.


    drush version

    drush version

  • watchdog-delete


    Delete watchdog messages.


    drush watchdog-delete

    drush watchdog-delete

  • watchdog-list


    Show available message types and severity levels. A prompt will ask for a choice to show watchdog messages.


    drush watchdog-list

    drush watchdog-list

  • watchdog-show


    Show watchdog messages.


    drush watchdog-show

    drush watchdog-show