The first 5 Drush commands

06:32
2067
45
0
0
1
Share
Jul 02, 2018

In this video, I will show you the first 5 Drush commands that you have to know.

If you liked this video, please also have a look at my new course about Drupal 8 module development here (with 50% discount):
https://goo.gl/LPyeDw

Here are the commands as used in the video:

1. Check which version of Drush do you have or if you have at all:
drush --version

2. Clear the cache:
drush cr

3. Check the last log messages:
drush ws

4. One time login
drush uli

5. Database backup
Please check this link since I can't put angle brackets in YouTube video description:
https://gist.github.com/flesheater/60d8bb4afff0a02c9983747a7e47451b

6. Database import
https://gist.github.com/flesheater/60d8bb4afff0a02c9983747a7e47451b

If you are very careful, you saw that I wrote that I said I am going to first show drush status. Well, that is something you could check by yourself - it is a command that shows you most of the info of the Drupal status page. Here is the documentation for it and there you can find handy examples of all the drush commands:
https://drushcommands.com/drush-8x/core/core-status/

Hi! I'm Karim Boudjema, the developer and site-builder of this site.

I was wondering how could I giving back to the Drupal community all what it gave to me during the last 10 years, that's how the idea of this site came to me ... (read more)

Hi! I’m Santiago Rico, the web designer and themer of this site.

When Karim proposed me to design and theme this site for the Drupal community, I accepted immediately because the community is the main reason why I love Drupal so much.