Drush

Articles & References

Handy Commands

  • DB Backup
    drush sql-dump | gzip > filename.sql.gz

  • DB Restore
    gunzip -c filename.sql.gz | drush sqlc

  • Delete entities
    drush entity:delete {type} --bundle={bundle}
    drush entity:delete node --bundle=article

  • Modules
    drush en module # Enable
    drush dis module # Disable
    drush pml # List