Drush is a command line shell and Unix scripting interface for Drupal. Drush core ships with lots of useful commands for interacting with code like modules, themes or profiles.

learn more… | top users | synonyms

-4
votes
0answers
5 views

Brain Training For Better Study Results

To get aerophilous benefits for your courageousness, lungs and travel scheme, aim to reach a take organs measure that is 50 % author than your rank at pose. You don't necessary to process up a pass ...
1
vote
1answer
18 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 ...
1
vote
4answers
59 views

New Drupal installation not working beyond front page (not accessing database)

I just installed a new drupal 7.39 using drush. From the browser, I can only goes as far as the front page(welcome page) and no further. I cannot log-in, suggesting that drupal is not accessing the ...
0
votes
0answers
9 views

Drush command l10n_update could not be found, but is present in Drupal site

Installed Drush 6.6.0 using composer following instructions on drush.org. Works fine. I have a set of site aliases in ~/.drush/mysite.aliases.drushrc.php: mysite.dev, mysite.stage, mysite.prod All ...
0
votes
3answers
42 views

How to get into a Drupal 7 site using only Drush without touching code or anything else?

I'm working on a acquia site and right now the dev environment is replicated from the prod. I want to be able to get in as admin on the dev site, but every time i hit the /user path it redirects me ...
2
votes
3answers
39 views

Recursive Drush make, working with different git branches

Setup For every site we make a custom Drupal install profile is created, copies of which are built using drush make (through Aegir, though that should not make a difference). There is a top-level ...
0
votes
0answers
14 views

Any advantage of using drush remote site aliases compared with Ansible

I like to use Ansible, when I'm automating work on a remote server. Its agentless nature allows me to run Drush commands on those server very easily. When there are multiple sites, I can set up local ...
1
vote
1answer
25 views

“skip_process_on_empty” plugin does not exist

I'm trying to migrate entities from a D7 to a D8 site using this tut: http://www.metaltoad.com/blog/migrating-taxonomy-drupal-7-to-drupal-8 When I execute the migration I get the error: The ...
1
vote
1answer
28 views

drush migrate-manifest not found

I'm trying to migrate a D7 site to D8 following this tut: http://www.metaltoad.com/blog/migrating-taxonomy-drupal-7-to-drupal-8 When I run drush migrate-manifest manifest.yml ...
0
votes
1answer
29 views

How to prevent “drush up” from destroying my git repo

I just updated Drupal to 7.39 using Drush, in particular the command drush up and all related steps as explained here: https://www.drupal.org/node/2550801. During the update I have noticed this ...
0
votes
1answer
19 views

Drush SSH Port 22 Error

I've been trying for quite some time now to get my drush to play nicely with my Drupal configuration and I'm having some problems. I'm attempting to perform cc all and uli on my Drupal directory and I ...
1
vote
0answers
16 views

Need clarification Rebuild Registry instructions

From the module page: You can just drush dl registry_rebuild and drush will download it into your .drush folder. (Alternately, you can obtain the package another way and copy the folder into .drush ...
0
votes
1answer
46 views

pm-update fails updating drupal-core and deletes everything

I need to update drupal install (core files + some contrib modules) through drush but as I run drush up it first correctly update the contrib modules but then fails on updating the core. The main ...
0
votes
0answers
17 views

drush site install to a different database host

I created a new Drupal site from a PHP script on a web server. The web server and database server is on different hardware, different ip addresses. drush si ...
1
vote
0answers
45 views

Drush v8: drush sql-sync failing with Illegal string offset 'site' backend.inc:1030

I'm using Drupal 8. I have an installation on my local dev machine as well as one on my remote demo machine. I'm attempting to use drush sql-sync so that I can make sure my local dev has the same data ...
0
votes
0answers
12 views

Drush make, git repository checkout specific subdirectory

I've got a make file in which I want to pull in a remote Git repository and only fetch a subdirectory. I've tried as following: projects[example_module][type] = "module" ...
0
votes
0answers
14 views

Working with drush make and custom profile choose profile module folders

I would like to start using drush make files. I work with custom profiles for my projects, so my drupal modules structure is: /{drupal files} /profiles/{customprofile}/modules/contrib ...
5
votes
2answers
100 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.
3
votes
3answers
45 views

How to make an import of the very large Drupal database?

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 ...
1
vote
2answers
19 views

drush sqlq --file on remote server with local file

Im trying to run run write a command where I can execute remote queries stored local. I was trying: drush @remote.master sqlq < src/sql/data.sql but no luck, also tried the option ...
1
vote
1answer
13 views

Drush: --yes-if-newer behavior with pm-download?

I'm writing an Acquia Cloud Hook where I install Registry Rebuild. In the interest of performance, I'd like to only install it if it's not already at the latest version. In other words, --yes unless ...
0
votes
1answer
21 views

How to clear page cache without rebuilding other caches

I have a large site which uses Drupal cores 'page caching for anonymous users'. I have made some javascript changes which I need to deploy. Since pages are currently cached I will need to clear the ...
0
votes
1answer
12 views

Add items to batch queue operations on the fly

I have some code which generates a batch with a single operation; to go off to an API and get some data. This data could be any number of items. I would like to be able to populate the rest of the ...
2
votes
1answer
31 views

Drush not reading config file from top-level /drush folder within Drupal install?

I'm trying to have localized drushrc.php configurations and alias configurations per site I'm working on, but no matter what I'm trying right now, drush refuses to find or load my drushrc.php ...
1
vote
2answers
25 views

Drush - run tests from commandline

I installed drush via composer, initially drush 8 was installed. I then try to run tests via drush test-run command,unfortunately I get the following output indicating the command is not found. ...
0
votes
1answer
15 views

drush migrate-status command not found

I've installed both version of drush using composer, and trying to list migration within my newer drup8 installation, in order to migrate an older drupal 7 website .. then I feel really stucked ...
0
votes
2answers
36 views

How to use Drush for Particular Project?

In my loalhost there are few drupal 7 sites installed. Suppose I have projects A,B and C then how to use for A,B Or C etc. How to use Drush by project wise?
0
votes
1answer
25 views

How to reset admin password with drush and Acquia Dev Desktop?

I realize that this is a pretty standard question that there is a lot of answers for elsewhere. The issue I have is that it seems that my drush commands aren't being reflected on my dev server. I got ...
0
votes
2answers
21 views

Log into Drupal using drush uli via CURL on the command line

I'm trying to execute a CURL request via command line which uses drush uli to log into my site as an administrative user. Then it's redirected to another destination url. It works if the redirected ...
0
votes
1answer
21 views

why my code does not run on drush?

The following code when i run it out of the drush command all goes fine... But when i want to create a drush command nothing works :/ /** * Implements drush_hook_my_command(). */ function ...
6
votes
3answers
226 views

What are some ways to tell if you are currently on the same Drupal installation as your code?

Currently I have to manage a few servers and there are a bunch of Drupal directories that all look alike. I'm also logged in as admin on the site, but what I want to find out is: How can I tell if ...
1
vote
2answers
39 views

Using Drush how can you see the last user that logged in?

Using drush, how can you see the last user that logged in? What about the last 5, 10, 20?
0
votes
2answers
15 views

How to reveal the admin password when logged in with one time login link?

I just started on a project and there is a prod and dev server. I have access to the dev server and I'm able to do a force login via 'drush uli admin' but I do not have access to the prod server to do ...
1
vote
2answers
30 views

Problem installing Drush 7 due to missing ext-pcntl PHP extension - any workarounds?

I attempted to install Drush 7 using the "manual install" instructions, and the "composer install" step failed with the error that the ext-pcntl PHP extension was not found. The hosting company ...
3
votes
1answer
87 views

What is the correct composer based core update workflow?

I want to use composer to manage Drupal 8 dependencies, but I'm not sure what is the right core update workflow. At the moment I'm using drush to update core to latest beta release, but I also have ...
0
votes
0answers
13 views

Manage multiple feeds import using cli

How Can I optimize multiple feed importer from cli. Is there anyway to optimize multisites using multicron for each site in drupal 7.? I want to implement like this ...
0
votes
1answer
20 views

Drush Remote Alias Fails with No Drupal Site Found

This is incredibly frustrating. Here's the deal. I have a drush alias defined for a server I'm working with. No matter what command it is, if it needs to bootstrap Drupal it fails with no drupal site ...
0
votes
1answer
27 views

Drush not installing correctly

I'm attempting to install Drush on a new system OSX 10.10.4. The process is no longer the simple one it used to be :( I've complied with the requirement to install via Composer (that was not small ...
0
votes
0answers
23 views

import from wordpress migrate with drush

UPDATE: I managed to import my 64MB of content!!!! I ket expecting to see something new appearing in the confirguration tab from migrate, but that's never been the case. I also kept having the AJAX ...
1
vote
1answer
62 views

Drush on an already existing project

First, I apologise for this question, it'll probably look very simple to a lot of you, but I am quite new at this and can't seem to figure it out. I am working on a project that requires that I ...
0
votes
2answers
51 views

How to install drush 8 properly?

I'm trying to install drush 8 via composer: composer global require drush/drush:dev-master (source) but it gives me drush version 7.0.0 which is without D8 integration... I'm using Linux Mint 17.
0
votes
0answers
27 views

drush archive-restore fails with DRUSH_UNKNOWN_OPTION“:[”Unknown options: --e, --g

Here's what I input at the command line: drush arr /var/backups/backup_migrate/scheduled/[archive name].tar.gz/var/www/vhosts/[sitename] --overwrite It didn't restore either the code or database ...
0
votes
3answers
59 views

Not able to execute Drush commands

I am newbie into Drupal and trying to setup a Drupal 8 Environment on Virtual Machine(Ubuntu). drupal8@drupal8-VirtualBox:/var/www/drupal-8.0-alpha5$ drush cc allCommand cache-clear needs a higher ...
0
votes
1answer
9 views

How do I include coffeescript and sass compilation steps into managing Aegir platforms?

By providing a drush make file, Aegir will create a new platfrom but sites cannot be created or migrated to it until coffeescript and sass files have been compiled. Generated javascript and css are ...
1
vote
1answer
22 views

How to prevent installation to run from UI?

I have an installation profile that will be installed purely via Drush/CLI. So I need to prevent anyone to run the installation from web interface. What would be the best approach?
0
votes
2answers
42 views

Not able to update module via drush

I am trying to update a module via drush. Referring this link [root@localhost d7]# drush update The drush command 'update' could not be found. Run `drush cache-clear drush` to clear the commandfile ...
1
vote
1answer
42 views

Best way to backup and restore the databases of a Drupal 7 multisite using Drush?

I'm looking for an easy way to backup (and if needed restore) the databases of a Drupal multisite using Drush. Drush command I use to backup all the databases: drush @sites sql-dump --result-file ...
0
votes
1answer
19 views

Enabling XML under PHP in windows - import_html module not working

So I'm having a problem with import_html. Basically, when I run the import from the sight, all of the content I wanted (except for xml files) get imported but I get these errors and warnings ...
1
vote
1answer
33 views

How can I encapsulate Drush command with option to use arguments

I have a drush command for installing a Drupal website with configuration in it. I do not want to type this command with all the configuration all the time because it is long so I would like to ...
1
vote
2answers
126 views

Drush not working on Mac OSX

I am developing on Mac OSX 10.10. I am not using MAMP, Aquia Desktop or anything like that. Instead, I am using the built in PHP/MySql in Mac (set up using this tutorial). When I run Drush, I get ...