Drupal commandline with drush

Download Drupal:
cd /home/[username]
drush dl --yes --destination=/home/[username] --drupal-project-rename=public
cd public

Install Drupal:
drush si standard --yes --db-url=mysql://[mysqlusername]:[mysqlpassword]@localhost/[mysqldatabase] --site-name="[domainname]"
chmod 777 sites/default/files

Get an admin login link:
drush uli

Set the password for any user:
drush upwd admin --password="[cmspassword]"

 

Status
drush st

Clear Cache
drush cc

Upgrade
druph up

Download een module project (Zie ook Drupal modules)
drush dl [projectnaam]

Activeer (enable) een module
drush en [projectnaam]

Tags:

Share: