Last active
December 30, 2015 21:49
-
-
Save pau1m/7889638 to your computer and use it in GitHub Desktop.
Drush cheat sheet
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
| Roles, Perms and Users | |
| drush -u 1 role-create 'site administrator' | |
| drush -u 1 role-delete 'site administrator' | |
| drush help | grep perm | |
| drush help perm-grant | |
| drush -u 1 perm-grant --roles="site administrator" --permissions="administer nodes, administer users" | |
| drush perm-grant --roles="site administrator" --all-modules | |
| drush -u 1 perm-revoke --roles="site administrator" --permissions="administer nodes, administer users" | |
| drush perm-revoke --roles="site administrator" --all-modules | |
| drush perm-copy 'editor' 'site administrator' | |
| drush user-create newuser --mail="[email protected]" --password="letmein" | |
| bulk deleting nodes https://drupal.org/project/delete_all | |
| one time login | |
| drush uli username | |
| change password | |
| drush user-password username --password="newpassword" | |
| drush upwd " " " | |
| CC | |
| hook menu changes | |
| $ drush cc menu | |
| new module hooks | |
| $ drush cc registry | |
| new tpl | |
| $ drush cc theme-registry | |
| cache / aggregated | |
| $ drush cc css-js | |
| // | |
| // | |
| Migration Stuffies | |
| ================== | |
| run drush from outside of root dir | |
| drush --root=/path/to/drupal --uri=dev.mydrupalsite.com | |
| drush site-alias --with-db --show-passwords --with-optional @self | |
| looks in ~/.drush by default | |
| drush site-alias --with-db --show-passwords --with-optional @self > ~/.drush/site-name.alias.drushrc.php | |
| http://drush.ws/examples/example.aliases.drushrc.php | |
| Acquia | |
| ====== | |
| drush sql-sync @demo.dev @demo.local | |
| drush rsync @demo.dev:%files/ @demo.local:%files | |
| more drush syncy stuff http://www.sixmiletech.com/content/syncing-sites-drush | |
| debugging "Killed" | |
| dmesg | grep php | |
| theme | |
| ======= | |
| Disable theme: drush -l http://example.com/ pm-disable theme_name | |
| Enable theme: drush -l http://example.com/ pm-enable theme_name | |
| Change theme: drush -l http://example.com/ vset theme_default theme_name | |
| Change admin theme: drush -l http://example.com/ vset admin_theme theme_name | |
| Make single module deps | |
| drush make --no-core sites/all/modules/example/example.make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment