1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-11-30 16:53:59 +00:00
awesome-cheatsheets/tools/drush.sh

67 lines
2.7 KiB
Bash
Raw Normal View History

2020-10-06 11:58:59 +00:00
##############################################################################
# DRUSH
2020-10-06 12:01:41 +00:00
# Install: https://www.drush.org/install/
# Usage: https://www.drush.org/usage/
2020-10-06 11:58:59 +00:00
##############################################################################
cache clear (cc) # Clear all caches.
2020-10-06 12:20:28 +00:00
cron # Run all cron hooks.
2020-10-06 11:58:59 +00:00
2020-10-06 12:20:28 +00:00
disable (dis) # Disable one or more modules.
2020-10-06 11:58:59 +00:00
2020-10-06 12:20:28 +00:00
download (dl) # Download core Drupal and projects like CCK, Zen, etc.
2020-10-06 11:58:59 +00:00
2020-10-06 12:20:28 +00:00
enable (en) # Enable one or more modules.
2020-10-06 11:58:59 +00:00
2020-10-06 12:20:28 +00:00
eval # Evaluate arbitrary php code after bootstrapping Drupal.
2020-10-06 11:58:59 +00:00
2020-10-06 12:20:28 +00:00
help # Print this help message. Use --filter to limit command list to one command file (e.g. --filter=pm)
2020-10-06 11:58:59 +00:00
2020-10-06 12:20:28 +00:00
info # Release information for a project
2020-10-06 11:58:59 +00:00
installcore (ic) # Install Drupal core via the specified install profile. Note that updating core with Drush is not yet available. See http://drupal.org/node/434944.
2020-10-06 12:20:28 +00:00
refresh (rf) # Refresh update status information script Runs the given php script(s) after a full Drupal bootstrap. NOTE: you can't supply absolute paths to the script e.g. ~/Desktop/script.php won't work Desktop/script.php will
2020-10-06 11:58:59 +00:00
sql cli (sqlc) # Open a SQL command-line interface using Drupal?s credentials.
2020-10-06 12:20:28 +00:00
sql conf # Print database connection details.
2020-10-06 11:58:59 +00:00
2020-10-06 12:20:28 +00:00
sql connect # A string for connecting to the DB.
2020-10-06 11:58:59 +00:00
2020-10-06 12:20:28 +00:00
sql dump # Exports the Drupal DB as SQL using mysqldump.
2020-10-06 11:58:59 +00:00
2020-10-06 12:20:28 +00:00
sql load # Copy source database to target database.
2020-10-06 11:58:59 +00:00
sql query (sqlq) # Execute a query against the site database.
2020-10-06 12:20:28 +00:00
status (st) # Provides a birds-eye view of the current Drupal installation, if any.
2020-10-06 11:58:59 +00:00
2020-10-06 12:20:28 +00:00
statusmodules (sm) # Show module enabled/disabled status
2020-10-06 11:58:59 +00:00
2020-10-06 12:20:28 +00:00
sync # Rsync the Drupal tree to/from another server using ssh.
2020-10-06 11:58:59 +00:00
2020-10-06 12:20:28 +00:00
test clean # Delete leftover tables and files from prior test runs.
2020-10-06 11:58:59 +00:00
2020-10-06 12:20:28 +00:00
test mail # Run all tests and mail the results to your team.
2020-10-06 11:58:59 +00:00
2020-10-06 12:20:28 +00:00
uninstall # Uninstall one or more modules.
2020-10-06 11:58:59 +00:00
2020-10-06 12:20:28 +00:00
update (up) # Update your project code and apply any database updates required (update.php)
2020-10-06 11:58:59 +00:00
updatecode (upc) # Update your project code. Moves existing project files to the backup directory specified in the config.
updatedb (updb) # Execute the update.php process from the command line.
2020-10-06 12:20:28 +00:00
variable delete (vdel) # Delete a variable.
2020-10-06 11:58:59 +00:00
2020-10-06 12:20:28 +00:00
variable get (vget) # Get a list of some or all site variables and values.
2020-10-06 11:58:59 +00:00
2020-10-06 12:20:28 +00:00
variable set (vset) # Set a variable.
2020-10-06 11:58:59 +00:00
2020-10-06 12:20:28 +00:00
watchdog delete (wd) # Delete all messages or only those of a specified type.
2020-10-06 11:58:59 +00:00
2020-10-06 12:20:28 +00:00
watchdog show (ws) # Shows recent watchdog log messages. Optionally filter for a specific type.