Drush Cheat Sheet For Linux And Windows

ADVERTISEMENT

PROJECT MANAGER COMMANDS
CORE DRUSH COMMANDS
pm-download
(dl)
archive-dump
(ard)
Download projects from or other
Backup your code, files, and database into a
sources.
single file.
pm-enable
(en)
Enable one or more extensions (modules or
archive-restore
(arr)
Expand a site archive into a Drupal web site.
themes).
cache-set
(cs)
Cache an object expressed in JSON or
pm-disable
(dis)
Disable one or more extensions (modules or
var_export() format.
themes).
core-config
(conf)
Edit drushrc, site alias, and Drupal settings.php
pm-list
(pml)
Show a list of available extensions (modules
files.
and themes).
core-cron
(cron)
Run all cron hooks in all active modules for
pm-info
(pmi)
Show detailed info for one or more extensions
specified site.
(modules or themes).
core-quick-drupal
Download, install, serve and login to Drupal
pm-uninstall
Uninstall one or more modules.
(qd)
with minimal configuration and dependencies.
pm-update
(up)
Update Drupal core and contrib projects
core-requirements
Provides information about things that may be
and apply any pending database updates
(rq)
wrong in your Drupal installation, if any.
(Same as pm-updatecode + updatedb).
core-rsync
(rsync)
Rsync the Drupal tree to/from another server
pm-updatecode
(upc)
Update Drupal core and contrib projects to
using ssh.
latest recommended releases.
core-status
(st)
Provides a birds-eye view of the current Drupal
pm-releases
(rl)
Print release information for given projects.
installation, if any.
pm-releasenotes
(rln)
Print release notes for given projects.
core-topic
(topic)
Read detailed documentation on a given topic.
pm-refresh
(rf)
Refresh update status information.
drupal-directory
(dd)
Return path to a given module/theme directory.
help
Print this help message. See `drush help help`
USER COMMANDS
for more options.
image-flush
user-add-role
(urol)
Flush all derived images for a given style.
Add a role to the specified user accounts.
php-eval
user-block
(ublk)
Evaluate arbitrary php code after
Block the specified user(s).
user-cancel
(ucan)
bootstrapping Drupal (if available).
Cancel a user account with the specified name.
php-script
(scr)
user-create
(ucrt)
Run php script(s).
Create a user account with the specified name.
search-index
user-information
(unif) Print information about the specified user(s).
Index the remaining search items without
wiping the index.
user-login
(uli)
Display a one time login link for the given user
self-update
Check to see if there is a newer Drush release
account (defaults to uid 1).
available.
user-password
(upwd) (Re)Set the password for the user account with
shell-alias
(sha)
Print all known shell alias records.
the specified name.
site-alias
(sa)
user-remove-role
Print site alias records for all known site aliases
Remove a role from the specified user
(urrol)
and local sites.
accounts.
site-install
(si)
user-unblock
(uublk)
Install Drupal along with
Unblock the specified user(s).
modules/themes/configuration using the
GLOBAL OPTIONS
specified install profile.
site-reset
Reset a persistently set site.
-r <path>
Drupal root directory to use (default: current
site-set
(use)
Set a site alias to work on that will persist for
directory).
the current session.
-l <uri>
URI of the drupal site to use (only needed in
site-ssh
(ssh)
Connect to a Drupal site's server via SSH for an
multisite environments or when running on an
interactive session or to run a shell command
alternate port).
test-clean
Clean temporary tables and files.
-v, --verbose
Display extra information about the command.
test-run
Run tests. Note that you must use the --uri
-d, --debug
Display even more information, including
option.
internal messages.
updatedb
(updb)
Apply any database updates required (as with
-y, --yes
Assume 'yes' as answer to all prompts.
running update.php).
-n, --no
Assume 'no' as answer to all prompts.
variable-delete
(vdel)
Delete a variable.
-s, --simulate
Simulate all relevant actions (don't actually
variable-get
(vget)
Get a list of some or all site variables and
change the system).
values.
-p, --pipe
Emit a compact representation of the
variable-set
(vset)
Set a variable.
command for scripting.
version
Show drush version.
-h, --help
This help system.
watchdog-delete
Delete watchdog messages.
--version
Show drush version.
(wd-del)
--php=</path/to/file>
The absolute path to your PHP intepreter, if not
watchdog-list
Show available message types and severity
'php' in the path.
(wd-list)
levels. A prompt will ask for a choice to show
-ia, --interactive
watchdog messages.
Force interactive mode for commands run on
multiple targets
watchdog-show
(ws)
Show watchdog messages.
- IT AIN'T CHEATING IF YOU DON'T GET CAUGHT -

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education
Go