Categories
Drupal modules Drush PHP

Drush:Powered by Drupal

Before starting with DRUSH, lets have a flashback about DRUPAL. Drupal is an open source content management, web development platform. Having a high modularized architecture Drupal has already made its mark in the WhiteHouse.gov and data.gov.uk. With no licence, no purchase, no maintenance Drupal is all set free to download, modify and use. Its Scalable starting from simple static websites to interactive web applications and dynamic corporate sites. But the complexity comes when the request and response starts playing on. A demo to make it more clear. Process to clear a cache.1. Go to Configuration, click on Performance, then click Clear all caches. Had it been an automatic one how wonderful it would be. With that context moving on to DRUSH.

DRUSH:

The name itself is a combination of two words DRUPAL and SHELL  gives you DRUSH. A shell is a program that provides the traditional function to read commands typed into a console or terminal window in a GUI and then execute them. In short DRUSH is a scripting interface that performs multiple actions with a single command. Arto Bendiken the man who initially developed it. Today it compatible Drupal 6, 7 and 8, and works on Linux, Mac OS, and Windows Operating Systems. Ti actually saves time with its high speed feature and versatility. To clear a catch just a command is enough no navigation’s required.

Getting Started with Commands:

View into a Feature
drush fe --d events_feature views:latest_events

Backup your code, files, and database into a single file:
archive-dump

Runserver commands:
runserver

SQL commands:
sql-create

User commands:
user-create

More syntax on http://drush.ws/