Questions tagged [drush]

Use it for questions about the command line shell and Unix scripting interface for Drupal (a.k.a. Drush).

Filter by
Sorted by
Tagged with
9
votes
6answers
15k views

Drush on windows - Command pm-enable needs a higher bootstrap level to run

I installed aquia drupal and added a core drupal folder into the sites list. I also installed the windows installer of drush, it works ok for downloading modules but when I try to enable them I get ...
8
votes
1answer
3k views

Has drupal abandoned drush?

I've been away from drupal for 2-3 years. I just came back around and installed drush via composer (like the drush site recommends) and now every time I try to use drush I get a message telling me ...
6
votes
2answers
2k views

advantages of drush bam vs. drush sql-dump / drush sql-connect

Is there any comparative advantage in terms of best practice, ease of use, or speed in terms of using the drush back up and migrate command (drush bam) or is it just preference? I'm often using just ...
4
votes
3answers
6k views

Drush and mysql database (with MAMP) connection problem

I have a problem running some drush methods involving database connection. I run the free version of MAMP. If I run methods like si or pml I get no problems But if I run the drush archive-dump ...
2
votes
5answers
2k views

Difficulties install Drush using composer

I have tried to install Drush on OSX 10.9 but it doesn’t seem to have worked. In terminal ‘drush status’ gives -bash: drush: command not found I have followed the instructions on http://whaaat....
2
votes
7answers
6k views

Drush does not work on my Mac [duplicate]

I use MAMP on Mac. When I try to use drush en omega command on drupal root directory to install omega, But the terminal throw me an error: drupal-7.23 tangmonk $ drush en omega Command pm-enable ...
8
votes
5answers
1k views

How to get an import of a very large Drupal database working?

I'm using Vagrant and OracleVM to run Drupal 7. I've got the site up and running and I'm trying to get my database imported. So far I've run drush cc and cleared the drush cache, and then I did ...
5
votes
3answers
2k views

Is it possible to change the path of modules/themes installed using an installation profile?

I have a site which has a profile which downloads a number of modules using drush make. It adds the modules in the path /profiles/profile_name/modules. Is it possible in the make file of the profile ...
5
votes
5answers
3k views

Can drush show list all available modules?

With yum you can do yum list available ..., and know the name of the package you want to install. For example, there is the Mime Mail module in Drupal. What name should I use with drush dl, ...
4
votes
1answer
1k views

Should a site be in maintenance mode when running the Drush Up command?

I'm not asking if I can update my website with Drush. I'm not asking if Drush can make it in maintenance mode. My question is ... if I'm using the command drush up to update my Drupal core or a ...
4
votes
2answers
3k views

Is there a way to pass additonal php.ini settings to a drush command?

I want to specify additional php.ini settings to a drush invocation in the manner they would passed using -d option if drush was a php script that could be passed to PHP using the -f parameter. On ...
3
votes
2answers
7k views

How do I update Drush to the latest available version?

On my Mac Mini running OS X 10.11, I installed Acquia Dev Desktop 2 which comes with Drush 8.0.0 rc1. I created a local site which uses Drupal 8, and all went fine; the only problem is that for every ...
11
votes
2answers
8k views

Setting a user as an administrator via drush command line?

How can I set a user to a specific role via drush? In my case I want to give the role of administrator to the user.
6
votes
3answers
1k views

How to add the configuration changes from a website to another website?

This is what I'm trying to do: I have a website A where I make configuration changes and add other stuff. Now I create a website B. I would like to add the configuration changes from website A to ...
5
votes
9answers
6k views

Drush CC all returning “No Drupal site found, only 'drush' cache was cleared”

I've tried other solutions, but none of them are specific to my setup. I just started using the new Linux subsystem featured in the recent Windows 10 update. I'm using WAMP x64 v3.0.6, and have ...
5
votes
2answers
4k views

Does the drush up command work on multisite?

I have to update all sites on a D7 multi-site installation. I normally deal with single installation and I use drush up to update the core, modules and db. I have no prior experience with a multi-site ...
4
votes
1answer
3k views

'drush rsync' not excluding paths specified in 'exclude-paths' in “aliases.drushrc.php”

I'm trying to get drush-rsync to exclude files/paths that as specified in my alias definitions. In /etc/drush/aliases.drushrc.php, I defined $aliases['site_A'] = array( 'root' => '/home/...
4
votes
2answers
4k views

Can I set Drush to always use verbose?

Its quite annoying to have to type -v. Is there a way to change the drush settings so that it will always use verbose mode so I dont have to bother typing -v?
3
votes
2answers
7k views

How to make drush to work correctly in Windows?

In Linux drush is comfortable with all Linux native commands. But how to make it working in Windows? Of course there is a drush installer for Windows and it is correct, but the real question is: how ...
3
votes
2answers
2k views

Why drush fails to rsync between my two local instances?

I'm trying to synchronize two local drupal repositories using the following command: drush rsync My environment: - drush 6.1 - Mac os X 10.9 - drupal 7.24 I have followed standard security ...
2
votes
1answer
1k views

How can I exclude folders when updating drupal using drush?

How can I use drush pm_update and exclude some folders? For example, I don't want to update Sites and Profiles folders.
2
votes
1answer
199 views

Creating Omega sub theme manually

I'm trying to create a functioning sub theme of Omega 4.4. I've worked with Drush before with it, but the site is on a host that I'm not administrator of. I've tried the Drush Webservice module but ...
2
votes
1answer
1k views

Drush: Update core from stable to dev

I would like to upgrade from drupal core 7.7 to 7.x-dev, is this possible using Drush? UPDATE: Ok, looks like either I needed Drush 4.5, or the process of updating Drush from 4.4 corrected something ...
1
vote
4answers
1k views

MAC -> Drush higher bootstrap level?

Since a couple of days now, i switched from a ubuntu machine to a macbook pro retina for my development works. I installed XAMPP on it, without to much trouble. But I have been struggeling with drush ...
1
vote
1answer
775 views

I'm on drush version 6 & can't do a drush status on my drupal8 site, whats the story? [closed]

drush status says I'm on drush version 6 How can I get drush to work with Drupal8 ? Do I have to grab a later version of drush directly from github? Any directions for this? Thanks. This is the ...
0
votes
1answer
1k views

How to get Drush to work with Composer [closed]

We've been using standalone Drush version so far to manage Drupal 7 websites, however the latest Drush version requires to be setup within Composer context. As Greg stated on New Drush install ...
0
votes
1answer
657 views

Cannot update modules with drush – needs higher bootstrap level [duplicate]

As stated in this answer Drush needs to find the settings.php file in order to work. My problem is that the settings.php file is indeed in the right folder (and I have navigated to the Drupal root ...
0
votes
1answer
389 views

Changing Drush make default subdir for install profiles

I have a drush make file which has a default subdir for projects: defaults[projects][subdir] = contrib This places all modules into the sites/all/modules/contrib folder, which is great. The ...
41
votes
1answer
976 views

I need to bring a site to version control, and set up the continuous Integration environment

I am an entrepreneur with a Drupal 6x project that started small enough to not need version control (per developers), but now I am convinced there is no way without it. There's extensive documentation ...
30
votes
4answers
4k views

Memory-saving cache-clearing strategies for large sites?

One of my Drupal 7 sites has thousands of fields, a bunch of content types, more than 25 views, and hundreds (soon to be thousands) of profile types. Because of this, I'm using a core patch that ...
24
votes
4answers
3k views

Are Drush and Phing redundant?

I've installed JenkinsCI on our dev server to start automating our dev build and test process. I'm using Jenkins with the Git Plugin and some Drush commands via a shell script. When researching how ...
15
votes
4answers
13k views

Import po-files using Drush

I have about 20 sites that have a common translation. I don't want to go into admin of each site each time the po-file is updated. Is it possible to import a po-file using Drush?
20
votes
3answers
19k views

Updating to a newer dev version of a module using Drush (ignoring point/recommended releases, without trashing version control)

[NB This question is off the back of, but separate/further to, an earlier question of mine, here.] I've been using Drush a good while, but every so often I get stumped. At the moment, I'm really not ...
28
votes
7answers
21k views

drush updatedb for a single module

Is it possible to perform a single module's update function via drush? I can see drush updatedb which does not take an modulename as argument and runs all available updates. Then there is drush pm-...
9
votes
3answers
5k views

How to skip specific tables with drush sql-dump?

I have a drush config file ~/.drush/drushrc.php: if (!isset($options['structure-tables']['common'])) { $options['structure-tables']['common'] = array( 'cache', 'cache_*', 'history', 'search_*', ...
12
votes
4answers
2k views

How can I get a list of content types with drush?

How can I get the existing content type list with drush? This will allow me to quickly produce a list. I've tried with: $ drush @d6 @sites genc --types But I need the devel_generates module ...
10
votes
3answers
1k views

Drush Make removes .git folders

After a silly feeling with drush make and github I found out that all the .git folders (used by git to record history, config, origin location etc ) were removed by drush make and I have heard about ...
4
votes
3answers
17k views

How do I install a patch file?

I was trying to google the method to install a patch file, but the results keep returning as "issues encountered while patching", which isn't what I am looking for. I was wondering how to use drush ...
12
votes
1answer
10k views

Where are logs created by drush_log() stored?

I have installed Devel module to use xhprof. In devel settings, I have enabled xhprof, but when I load a page, can't see a link to xhprof. I read the source and found this: drush_log('xhprof link: ' ....
10
votes
3answers
5k views

How do I disable modules in Drupal 8 in admin interface or via Drush?

In Drupal 7 it was possible to disable modules via admin interface or via Drush drush pm-disable. In Drupal 8 the checkboxes are greyed out in the admin interface and Drush is not able to disable them ...
24
votes
3answers
5k views

Is it possible to download sandbox projects with Drush?

Normally, one can download a module from drupal.org like this: drush dl views However, this doesn't work for sandbox projects. Is there an easy way to download them or I am stuck with git clone?
6
votes
4answers
9k views

How can I change theme?

I tried drush disable theme-name and afterwards drush enable theme-name, but it didn't work. How do you change theme with Drush?
5
votes
4answers
7k views

How to push changes from a dev environment to prod

Our team of 10 developers would like to use Dev, Test, Staging and Production environments for our large site. How can we streamline pushing our changes from one site to another, keeping them as ...
2
votes
1answer
2k views

Drush and multisite config

I have a new multisite instance with the Backup & Migrate module installed in /sites/all/modules/ When I run drush the bam-* commands don't show as available commands. I have site aliases set up ...
11
votes
1answer
6k views

How to dump a single table from database using drush?

I'm aware of mysqldump utility, but is there any way of dumping a single table from database using drush (e.g. for sql-dump, sql-sync)?
10
votes
2answers
4k views

How do I use Drush 8 site aliases in Drush 9?

In Drush 8, my site aliases are loaded correctly from ~/.drush/mysite.aliases.drushrc.php. E.g. $aliases['dev'] = array( 'root' => '/var/www/html/mysite.dev/docroot', 'uri' => 'mysite.prod....
9
votes
3answers
13k views

How to completely wipe and rebuild drupal menus?

A while ago I found a cool blog post that detailed how to empty the menu tables, and rebuild the menu system with a drush php call, a necessity since the site will be unusable after emptying those ...
7
votes
7answers
4k views

How to delete all terms in a vocabulary with drush?

As reported here I have big problems with huge vocabularies in Drupal 7. Now I want to empty the big vocabularies, but I can't do that via the admin interface, because its running out of memory, so it ...
7
votes
4answers
974 views

How to adapt the name of a custom Drush command?

I saw the interesting answer to the question about "How can I get a list of content types with drush?", which starts like so: You can create a drush command named content-type-list. But I wonder ...
7
votes
2answers
3k views

Add a block to a region using drush

How can I add a block to a region using Drush? I'm using Drupal 7.0 and Drush 4.3.