Saturday, July 27, 2024
HomeDeveloperManaging a site from the command line using Drush

Managing a site from the command line using Drush

Date:

Related stories

Play Crazy Time and Win Big

Crazy Time is an exciting live casino game that...

Exploring the Excitement of Online Gaming: A Comprehensive Guide

Online gaming has rapidly evolved into one of the...

Starzbet APP: Features and User Experience

In the rapidly evolving landscape of online betting, accessibility...

Hassle-Free Starzbet Giriş: Start Betting Instantly

Starzbet Giriş, or login, is your gateway to a...

Get the Latest Updates on Starzbet Twitter

In the fast-paced world of online gaming and betting,...
spot_img

Drush or drupal shell is a command-line utility to help the site building and maintenance workflows.

Available Drush Commands:

For a list of available commands  type drush help.

For a printable version use drush help --html

Extensions

Other modules provide new drush commands! These become available automatically and are listed when you run drush help.

Tips

Drush autodetects the appropriate site from directory context, and read its configs from there, so if your command shell is in {drupaldir}/sites/all or anywhere under {drupaldir} then drush commands will apply to your default install. If you move your shell session into {drupaldir}/sites/mysite, then drush commands will be run in the context of the mysite multisite instance. You can always run drush status to check the currently active context.

When updating with Drush, it is not necessary to put the site in maintenance mode.

Example Commands

drush dl cck zen
Download current recommended versions of CCK module and Zen theme.
drush en content
Enable the content (cck) module.
drush vset theme_default theme_name
make theme_name theme default theme
drush --uri=http://example.com status
Show status command for the example.com multi-site.
drush pm-releases backup_migrate
Get info on all available releases for backup_migrate.module, e.g.

Project         Release      Date
backup_migrate  6.x-2.x-dev  2009-Apr-07
backup_migrate  6.x-1.2      2009-Jan-18
backup_migrate  6.x-1.0      2008-Aug-14
backup_migrate  6.x-1.x-dev  2009-Feb-19
drush -v  dl backup_migrate-6.x-1 --package-handler=git_drupalorg
Checkout via git, the current stable version of the backup_migrate module on the DRUPAL-6–1 branch into your sites/{active.site}/modules/ directory. In this case the result is identical with just drush dl backup_migrate --package-handler=git_drupalorg as the requested version is the recommended version.
drush -v  dl backup_migrate-6.x-2.x-dev --package-handler=git_drupalorg
Checkout via git, the unstable dev version of the backup_migrate module on the DRUPAL-6–2 branch into your sites/{active.site}/modules/ directory.
drush -v  dl backup_migrate-6.x-2.x-dev
Without specifying a --package-handler, (the default) the project bundle is retrieved via wget, and unpacked locally without the git information. This may overwrite any local changes.
drush pm-update devel
Update the devel module to the latest recommended release and apply any database updates
drush pm-update drupal
To update only Drupal core (in case of a security update)

See also: Offsite blog tutorial (with pictures) on Installing and running drush on OSX by morten

Drupalize.Me has a free video on installing Drush on all Unix systems, including OSX…Installing Drush on Unix Systems

Windows’ Drush Make command working in Drush 5.8

Being a lazy programmer, I was so excited when I discovered drush. Then, my excitement was dulled when I discovered that the drush make command did not work in Windows XP or 7. Thankfully, drush make is now working in drush 5.8.

Upgrading to dev versions of Drush using Windows

If you have a need, this article provides detailed instructions for manually upgrading to the latest development version of drush. Do worry, it’s pretty easy.

Latest stories

spot_img
sabung ayam online
slot mahjong
akun pro jepang
https://sipita.akmt.ac.id/ttd/jmw/
https://akmt.ac.id/wp-content/plugins/cas/
https://akmt.ac.id/wp-content/plugins/caq/
https://sta-afc-ob.com/wp-content/uploads/2020/
https://sta-afc-ob.com/wp-content/uploads/2020/xgacor/
http://unitycolleges.co.in/1_2_1/terbaru/
https://diabeticregulator.com/images/joker/
https://kodimariimpex.com/img/slot-online/
https://mynasolutions.com/includes/gampang-menang/
https://perpustakaan.ithb.ac.id/files/chat/
https://gosyensejahterautama.co.id/core/vendor/split/
https://gosyensejahterautama.co.id/core/vendor/lan/
https://lp2m.akmt.ac.id/-/xgacor/
https://phys.unpad.ac.id/wp-content/languages/
https://mbig.bakrie.ac.id/config/-/max/
https://mbig.bakrie.ac.id/error/-/xbitxx/
https://ma.arrahmat-majalengka.sch.id/lib/ws168/
https://ma.arrahmat-majalengka.sch.id/lib/mix/
https://elearning.smpn2jayapura.sch.id/-/xgacor/
https://event.potensiaskill.com/defe/
https://event.potensiaskill.com/ceo/
https://blueedenscraptrading.com/zuu/
https://infinitotravel.com.ar/
https://laotomana.com.ar/
https://portal.stiemadani.ac.id/vendor/lib/mix/
https://portal.stiemadani.ac.id/vendor/lib/hitam/
TANGKASNET/
AKUN PRO PLATINUM
https://rajawalitanjungsari.com
sv388
casino online
agen sbobet
sabung ayam online
mahjong ways 2
scatter hitam
slot thailand
slot thailand
indobola77
indobola77
sabung ayam online
slot777
slot gacor
indomax88
indomax88
slot gacor
bandar303
bandar303
bandar303
Juara303
indobit88
master303 slot
master303 slot
Scatter Hitam
sabung ayam online
slot gacor
bola gacor
akun pro thailand
Sabung Ayam Online
Slot777
Ws168
https://sma1polanharjo.sch.id/
Casino Online
https://realcount-bundaenie.com/
https://operator-bsnpgkotabekasi.com/
https://bsnpgkotabekasi.com/
slot thailand
sv388
sabung ayam online
sv388
sabung ayam online
slot gacor
slot zeus
https://ela.p3tik.unisma.ac.id/
sbobet
sv388
sbobet
Zeus Slot
Akun Jp
Zeus Slot
Slot Thailand
Scatter Hitam
Slot777
Sv388
Akun Demo Slot