Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [drush]

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

0
votes
1answer
6 views

Is “parent” supported in Drush 9 aliases?

Is the "parent" key supported in Drush 9? It isn't in the example file here https://github.com/drush-ops/drush/blob/master/examples/example.site.yml or drush docs:aliases and I am trying to get a ...
0
votes
0answers
25 views

Site not found in Docker container [on hold]

i'm developping a docker stack for personnal use. Everything works but in my drupal docker (7 and 8) i don't find how to include drush. I keep having "drupal site not found". Here is the link to the ...
1
vote
2answers
24 views

Drush not “seeing” Drupal installation

I have a drupal installation running in a vagrant virtual machine. This works fine, but when I try to use Drush on this site I get very peculiar behavior. The modules that are listed when I run "...
0
votes
1answer
39 views

Execute drush commands from UI?

So i wrote a lot of custom code which is executed form custom drush commands from the command line/terminal, works fine, but now the client changes his mind and want to execute the code from the UI, ...
1
vote
2answers
33 views

User added with Drush not working

So, I have to work on a D8 site I don't have a user account for. So, when I brought the code and database over to my local environment, I thought this would be an easy fix for drush. My local dev ...
0
votes
0answers
6 views

Is it possible to use drush migrate-import to import custom fields?

I am trying to migrate a Drupal 7 site to Drupal 8 on a new server I have copied the db so it can be used locally. I have run the drush migrate command and migrate-status shows a bunch of things that ...
1
vote
1answer
33 views

How to move Composer created folder of drupal-8.x.x up one level to html?

So I created a fresh install of Ubuntu 16.04 and installed the LAMP stack, installed phpmyadmin and composer and then finally drush. Everything worked fine until I downloaded and installed Drupal ...
1
vote
1answer
44 views

Installing Drush on Mac OS 10.13 (High Sierra)

I've been struggling for a few days getting drush to install properly on my Mac. I've followed the instructions on https://www.drupal.org/node/1674222 Composer installs fine, but when I cd into ...
1
vote
1answer
47 views

Flush cache in case of WSOD without Drush on shared host

I have installed Drupal from using build-in scripts on runcloud.io, but I have noticed that Drush is not available. They have replied: Sorry, it is not possible to install drush into Runcloud. ...
0
votes
0answers
35 views

Drush shows fatal error when executed in a Drupal root

I've just installed a fresh copy of Drupal 7 with CiviCRM and everything runs smoothly, as well as Drush (locally installed), but not when I execute it in the Drupal root directory, it immediately ...
3
votes
3answers
83 views

How to setup Drush core development environment?

I would like to create a PR against Drush, so one of the core commands has additional options. But I'm not really sure, how should I setup my development environment, so I'm not losing my time moving ...
2
votes
2answers
52 views

How to invoke a post drush command?

I am using Drush 9 and Drupal 8. When I execute drush site:install I find that it also modifies the permission of the web/site/default directory to r-xr-x--x, which troubles me delete that directory ...
0
votes
1answer
32 views

Drush upwd Changes Database Hash but Login Fails

I have a weird one. I have a site that was abandoned for a while and we need to get access to it again. So I tried to use drush to reset the admin password, but it's not working. I'm using Drush 8.1....
0
votes
1answer
22 views

Using Drush on shared hosting without `curl` and `wget`

I have a Drupal 7 site installed on shared hosting. And installed Drush:8.1.17 with composer and cgr all is working well except drush up because hosting provider does not support curl or wget on ...
0
votes
0answers
33 views

Drush can't find preflight.inc

I am on windows 10 and have installed Drush 8.1.17 via composer, running on cygwin. I am using PHP 5.6. When I type drush status, I get an error... PHP Warning: require(/home/Don/includes/preflight....
0
votes
1answer
33 views

Why do I get “Command pm-disable needs a higher bootstrap level to run”?

Running drush dis varnish in the Drupal directory gives give me this message. Command pm-disable needs a higher bootstrap level to run. Running drush --debug dis varnish -y gives the following ...
0
votes
1answer
9 views

Drush hangs out on dl commerce_kickstart

in recent days new version of Commerce Kickstart 2 was introduced (v2.55). I tried upgrading my current installation (v2.54) using drush: drush --debug dl commerce_kickstart unfortunately after this ...
4
votes
1answer
52 views

How to use drush config:set for translations?

https://drushcommands.com/drush-9x/config/config:set/ For one language site the command is: drush config:set system.site name "Drupal 8 English sitename" But how to be, if the site is multilanguage,...
0
votes
1answer
34 views

Drush not connecting to site's settings.php

When I run drush --debug status in the docroot of my Drupal site, I get the following message: [user@computer]$ drush --debug status Phar detected. Proceeding to drush_main(). Loading drushrc "/home/...
0
votes
2answers
58 views

Trigger a drush @sites cr --yes daily [closed]

Drupal 8. Title sums up pretty much my question. I'm wondering what is the best way to rebuild all my site's cache daily. A cron job with Truncate table cache ? Module who rebuild cache on each ...
0
votes
0answers
46 views

Drush installation problem on windows 10

I have problems running Drush on windows 10 with aquia desktop. The problem. I have folder structure c:\www\arlande.nl c:\www\itjobcoach Going into arlande.nl\web running drush is good : report is: ...
2
votes
1answer
27 views

Local drush stops working after changing files and folder permissions

So I changed the files and folder permissions with the following commands on Drupal 8 and after that, I can't run drush commands unless I change file permissions to 777 find . -type f -print0 | xargs ...
0
votes
1answer
24 views

How to pipe output of “drush sql-dump” without warnings

When I do: drush sql-dump > somewhere/database.sql if there will be any warnings printed by Drush, they will be included at the beginning of the created database.sql file. Can we avoid it somehow? ...
0
votes
1answer
31 views

Double slash in path of downloaded module

I get a strange behaviour on 2 websites under Drupal 8. When I download a module via Drush, the path contain two consecutive slashes like this. Project key_value (8.x-1.1) downloaded to /home/www/...
0
votes
1answer
27 views

Drush migrate-upgrade error

I have run drush migrate-upgrade successfully previously, but not when I run it, I am getting "An option named "Configure-only" already exists." I get this error regardless of if I have --...
0
votes
2answers
66 views

The missing modules don't get installed after updating with Composer

To update a site locally, I cloned the code base with git to my local computer and imported the database, then ran "composer update --with-dependencies", there were no errors, then I went to /web ...
1
vote
1answer
40 views

Drush 9 pulling incorrect site information on Multi-site

We have a multisite set up with Drupal 8.6.1 and Drush 9.4.0. This is set up on two servers that were set up identically. The issue we are running into is that Drush is only detecting defaultsite, ...
1
vote
1answer
63 views

Acquia Dev Desktop and Drush broken with syntax is incorrect

I did a clean install of Acquia Dev Desktop (Build Nov 13th, 2017) under Windows 10. I can clone my site (Drupal 8) and then click to open my local Drush console. It opens a DOS prompt into the ...
0
votes
0answers
33 views

Site update takes a long time. How to check progress?

I am upgrading Drupal on a large multimedia site using drush pm-update. Creating a backup and then restoring the site from the backup takes a long time. The size of the backup is in several gigabytes. ...
0
votes
1answer
21 views

Deleting translate interface strings programmatically or using drush

I need to delete some translated strings added using t() function, I've about 17000 string to delete is there a way to delete it using a SQL query or drush command? in which table those strings are ...
-4
votes
3answers
185 views

Did the Drush developers went “back and forth” when combining it with Composer?

If I'm not wrong about 4 or 3 years ago Drush was combined with composer, then it was "decombined" with it, till Drush 9 when they were recombined. If I'm accurate, why did this combine-decombine-...
3
votes
1answer
106 views

Is it normal that Drupal enters maintenance mode during a module update?

I have created a custom module with an .install file, which includes some hook_update_N() and hook_update_N(&$sandbox) update hooks. These are used to update a collection of existing nodes. ...
0
votes
2answers
31 views

Can't acces my site and without login and drush clear cache

I moved my local site to shared host. all code has been deployed to the staging server I changed settings.php import the database from local to the staging server database When I try to reach the ...
0
votes
0answers
159 views

Managing sites with multiple Drush versions

I have drush installed globally in /usr/local/bin/drush , but I also have a directory for multiple drupal websites so each website has their own drush in vendor/drush/drush/drush. When I run drush ...
0
votes
1answer
16 views

CSV Article Migration giving random errors

I've been working on a personal test site for a while and wanted to set up another one for someone else. This just involves running a migration to import all the articles from a CSV file. It's worked ...
-1
votes
1answer
41 views

Drush documentation

I'm curious if anyone else noticed how difficult it is to get drush working based on the available documentation? Drush is a great command line tool, and it's a pity that the official drush install ...
0
votes
0answers
32 views

drupal_rewrite_settings() append databases variable without checking if it is already defined inside settings.php

Download Drupal 8 Copy the default.settings.php file to settings.php Modify the settings.php file by adding the definition of the database connections $databases['default']['default'] = array ( '...
0
votes
0answers
22 views

is there any way to decrease memory usage of Drush exporting views? [duplicate]

everyone! I've found an interesting issue with views. I use views bulk operations module and vbo_export modules to export views to excel file using Drush. And I found that it's using a lot of memory, ...
0
votes
0answers
15 views

Drush and Security kit module

Does exists the command in Drush which can setup Security module, something like this command: drush seckit --img-src:self,unsafe-inline? Thanks!
0
votes
0answers
116 views

Drush doesn't complete archive-dump

I have Drush 8 running on a shared server with Drupal 8.6.1 Until recently an 'archive-dump' completed in approx. 20 minutes rendering a (timestamp)*.tar.gz file which could be uncompressed in two ...
0
votes
0answers
52 views

Drush consumes too much memory during views data export

I noticed really annoying thing concerning views. It consumes huge amount of memory. I have export made with Drush (Views data export module - allows to export view to a file) and I noticed that it ...
0
votes
3answers
68 views

Does Drush 8.x work with core 7.x?

With the major changes to Drupal with version 8, it seems I would need Drush 7.x or earlier to work with Drupal 7.x. I tried to rebuild the cache and I got errors related to namespaces in PHP. It ...
0
votes
0answers
20 views

Drush 9 configuration-import on multiple sites at once [duplicate]

I have a project that uses a multisite and I want to be able to execute drush commands on that sites with just a single command. Example: drush @mysites.pro updb I'ts possible do that with drush 9?...
2
votes
1answer
42 views

Unexpected error during import . . . plugin does not exist error on drush config import

This is an issue I've had occasionally when trying to delete a plugin in a custom module. In this example, once a filter format filter plugin has been enabled it's impossible to remove. If you ...
0
votes
0answers
34 views

Eliminating Long Delays in Drush Install

I'm using drush to install a local copy of drupal with the following invocation drush --verbose --yes --no-server --root=`pwd`/drupal core-quick-drupal This works -- but midway through the install ...
2
votes
1answer
308 views

How can I execute Drush commands programmatically? [duplicate]

I'm working on a site (D8), and part of the requirement is giving the client a page that they can click a button to do a particular task. I am able to do this using a Drush command using CLI. But I ...
0
votes
2answers
160 views

How to update core and all modules and themes from CLI?

On a LAMP environment I have a Drupal 8.5.6 website which is nearly all-core with the Bartik theme and a few stable contrib modules. Nothing is customized and I have daily backups so I don't "fear" of ...
1
vote
1answer
45 views

The database is not bootstrapped in another docker container

The following problem occurs when running certain Drush commands, such as drush en features which outputs: Command pm-enable needs a higher bootstrap level to run - you will need to invoke drush ...
0
votes
1answer
20 views

D7 - does drush rr ALSO clear cache?

Someone just told me that in D7, drush rr and drush cc all do the same thing. I can’t find anything that explicitly states the difference, nor can I find anything that supports such a claim. ...
1
vote
2answers
353 views

Update website from 8.0.0 to 8.6.1

I'm pretty new to Drupal and I'm trying to update a website from 8.0.0 to 8.6.1. I've followed the guide here: https://www.drupal.org/docs/8/update/update-core-via-composer The composer part went ...