drush core commands


Drush core commands for Drush 8.

  • 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

  • core-cli


    Open an interactive shell on a Drupal site.


    drush core-cli

    drush core-cli

  • 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-init


    Enrich the bash startup file with completion and aliases. Copy .drushrc file to ~/.drush


    drush core-init

    drush core-init

  • 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

  • do:sanitize


    Performs database sanitization.


    drush do:sanitize

    drush do:sanitize

  • drupal-directory


    Return the filesystem path for modules/themes and other key folders.


    drush drupal-directory

    drush drupal-directory

  • entity-updates


    Apply pending entity schema updates.


    drush entity-updates

    drush entity-updates

  • help


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


    drush help

    drush help

  • image-derive


    Create an image derivative.


    drush image-derive

    drush image-derive

  • image-flush


    Flush all derived images for a given style.


    drush image-flush

    drush image-flush

  • new-status


    drush new-status

    drush new-status

  • 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

  • sanitize:comments


    Sanitizes comments_field_data table.


    drush sanitize:comments

    drush sanitize:comments

  • sanitize:sessions


    Truncates the session table.


    drush sanitize:sessions

    drush sanitize:sessions

  • sanitize:table-column


    Replaces all values in given table column with the specified value.


    drush sanitize:table-column

    drush sanitize:table-column

  • sanitize:user-fields


    Sanitize string fields associated with the user.


    drush sanitize:user-fields

    drush sanitize:user-fields

  • 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

  • sql-sanitize


    Run sanitization operations on the current database.


    drush sql-sanitize

    drush sql-sanitize

  • twig-compile


    Compile all Twig template(s).


    drush twig-compile

    drush twig-compile

  • 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

  • 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

  • wrap:table-name


    Wraps a table name in brackets if a database prefix is being used.


    drush wrap:table-name

    drush wrap:table-name