my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
5.7 KiB

3 years ago
  1. # Drush
  2. This plugin adds aliases and functions for [Drush](https://www.drush.org), a command-line shell
  3. and Unix scripting interface for Drupal. It also adds completion for the `drush` command.
  4. To enable it, add `drush` to the plugins array in zshrc file:
  5. ```zsh
  6. plugins=(... drush)
  7. ```
  8. ## Aliases
  9. | Alias | Command | Description |
  10. | ------- | ----------------------------------------------------------- | -------------------------------------------------------------------- |
  11. | `dr` | `drush` | Display drush help |
  12. | `drca` | `drush cc all` | _(Deprecated in Drush 8)_ Clear all drupal caches |
  13. | `drcb` | `drush cc block` | _(Deprecated in Drush 8)_ Clear block cache |
  14. | `drcex` | `drush config:export -y` | Export Drupal configuration to a directory |
  15. | `drcg` | `drush cc registry` | _(Deprecated in Drush 8)_ Clear registry cache |
  16. | `drcim` | `drush config:import -y` | Import config from a config directory |
  17. | `drcj` | `drush cc css-js` | Clear css-js cache |
  18. | `drcm` | `drush cc menu` | Clear menu cache |
  19. | `drcml` | `drush cc module-list` | Clear module-list cache |
  20. | `drcr` | `drush core-cron` | Run all cron hooks in all active modules for specified site |
  21. | `drct` | `drush cc theme-registry` | Clear theme-registry cache |
  22. | `drcv` | `drush cc views` | Clear views cache _(make sure that the views module is enabled)_ |
  23. | `drdmp` | `drush drush sql-dump --ordered-dump --result-file=dumpsql` | Backup database in a new dump.sql file |
  24. | `drf` | `drush features` | Display features status |
  25. | `drfr` | `drush features-revert -y` | Revert a feature module on your site |
  26. | `drfra` | `drush features-revert-all` | Revert all enabled feature module on your site |
  27. | `drfu` | `drush features-update -y` | Update a feature module on your site |
  28. | `drif` | `drush image-flush --all` | Flush all derived images |
  29. | `drpm` | `drush pm-list --type=module` | Show a list of available modules |
  30. | `drst` | `drush core-status` | Provides a birds-eye view of the current Drupal installation, if any |
  31. | `druli` | `drush user:login` | Display a one time login link for user ID 1, or another user |
  32. | `drup` | `drush updatedb` | Apply any database updates required (as with running update.php) |
  33. | `drups` | `drush updatedb-status` | List any pending database updates |
  34. | `drv` | `drush version` | Show drush version |
  35. | `drvd` | `drush variable-del` | Delete a variable |
  36. | `drvg` | `drush variable-get` | Get a list of some or all site variables and values |
  37. | `drvs` | `drush variable-set` | Set a variable |
  38. | `drws` | `drush watchdog:show` | Show watchdog messages |
  39. | `drwse` | `drush watchdog:show --extended` | Show watchdog messages with extended information |
  40. | `drwst` | `drush watchdog:tail` | Tail watchdog messages |
  41. ## Functions
  42. - `dren`: download and enable one or more extensions (modules or themes). Must be
  43. invoked with one or more parameters, e.g.: `dren devel` or `dren devel module_filter views`.
  44. - `drf`: edit drushrc, site alias, and Drupal settings.php files.
  45. Can be invoked with one or without parameters, e.g.: `drf 1`.
  46. - `dris`: disable one or more extensions (modules or themes). Must be invoked with
  47. one or more parameters, e.g.: `dris devel` or `dris devel module_filter views`.
  48. - `drpu`: uninstall one or more modules. Must be invoked with one or more
  49. parameters, e.g.: `drpu devel` or `drpu devel module_filter views`.
  50. - `drnew`: creates a brand new drupal website. Note: as soon as the installation
  51. is complete, `drush` will print a username and a random password into the terminal:
  52. ```text
  53. Installation complete. User name: admin User password: cf7t8yqNEm
  54. ```