Thursday, November 7, 2024
HomeBusinessManaging a site from the command line using Drush

Managing a site from the command line using Drush

Date:

Related stories

The Art of Betting in Live Casino Games: Strategies and Insights for Success

Live casino gaming has surged in popularity over recent...

Explore the Best Online Gambling Platforms at Macaubet

The online gambling industry has seen remarkable growth in...

How to Redeem Bonus New Member 100 and Play Slot Gacor Effortlessly

In the competitive world of online casinos, players are...

Experience the Thrill: Online Pokies That Pay Real Money

Online pokies have surged in popularity, captivating millions of...

How to Access the Latest Promotions with Starzbet Yeni GiriÅŸ

In the fast-paced world of online betting, promotions play...
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
Slot77Jp link slot gacor slot maxwin situs slot online suhu138 suhu138 slot scatter hitam

Warning: file_get_contents(): Filename cannot be empty in /home/u117677723/domains/martinvalasek.com/public_html/wp-content/themes/Newspaper/footer.php on line 6
didascaliasdelteatrocaminito.com
glenellynrent.com
gypsumboardequipment.com
realseller.org
https://harrysphone.com/upin
gyergyoalfalu.ro/tokek
vipokno.by/gokil
winjospg.com
winjos801.com/
www.logansquarerent.com
internationalfintech.com/bamsz
pancen.id
winjosjakrata.com
winlotrebandung.com
condowizard.ca
jawatoto889.com

hikaribet1.com
heylink.me/hikaribet
www.nomadsumc.org
condowizard.ca/aromatoto
euro2024gol.com
www.imaracorp.com
daftarsekaibos.com
stuffyoucanuse.org/juragan
Situs Togel Resmi
Toto Macau 4d
Aromatoto
Lippototo
Mbahtoto
Winjos
152.42.229.23
bandarlotre126.com
heylink.me/sekaipro
www.get-coachoutletsonline.com
wholesalejerseyslord.com
Fajartoto
Situs Togel
Toto Macau