Created
September 23, 2012 03:30
-
-
Save nucklearproject/3768738 to your computer and use it in GitHub Desktop.
Drush commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Generate makefile | |
FOLDER$drush generate-makefile NAMEFILE.make | |
Download with make files | |
$drush make FILE.make FOLDER | |
Fresh install | |
FOLDER$drush site-install --account-name=admin --account-pass=admin --db-url=mysql://root:PASS@localhost/DATABASE | |
List installed themes and modules | |
$drush pm-list --status=enabled | |
Disbaled themes or modules | |
$drush pm-disable --yes <module> | |
Module information | |
$drush pm-info <module> | |
UPdate module. | |
Manually: | |
1. Remove the old version of the module from the source code. | |
2. Download and extract the latest version from the project page and place it | |
where the old version was. | |
3. Open update.phpin a web browser as the administrator and run database | |
updates, if the new version of the module has any. | |
4. Clear the cache. | |
Sucks!!!!! | |
With drush: | |
1. disable module | |
$drush pm-disable --yes <module> | |
2. Download the module | |
$drush pm-download --select --all <module> | |
3. Update. | |
$drush pm-update --no-core <module> | |
Database backup: | |
1. Clear all cache. | |
$drush cache-clear (Select ALL) | |
2. (Optional) clear all watchdog table (http://drush.ws/#watchdog-delete) | |
$drush watchdog-delete all | |
3. Dump database, create in current directory. | |
$drush sql-dump > <PATH>/FILE.sql | |
4. Dump database compressed in gz. | |
$drush sql-dump | gzip -9 > FILE.sql.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment