The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
0
votes
1answer
112 views

How to set a multi line value from drush vset

I was trying to add a value to the drupal antibot antibot_form_ids variable. drush vget antibot_form_ids returns a string separated by /r/n Adding just a value to this string isn't just enough. If ...
0
votes
0answers
57 views

Drush 9 colors does not work

I have the following Drush command: /** * @command mycommand */ public function myCommand() { $this->io()->success('MY TEST'); } If I type in CLI: drush mycommand -> Formatted,...
1
vote
1answer
89 views

Is “parent” supported in 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 ...
1
vote
2answers
38 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
208 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
75 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
1answer
62 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
125 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
197 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
55 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. ...
4
votes
3answers
125 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 ...
3
votes
3answers
447 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
84 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
58 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 ...
1
vote
1answer
362 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
10 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
177 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
123 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
71 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
322 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
234 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
224 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
44 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
81 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
309 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
265 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, ...
2
votes
2answers
661 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
1answer
148 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
204 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
469 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
53 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
1answer
23 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
69 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
1answer
78 views

Can I setup the Security Kit module via Drush?

Does a Drush command exist which I can use to setup the Security Kit module? Something like this command: drush seckit --img-src:self,unsafe-inline?
0
votes
3answers
160 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 ...
3
votes
1answer
230 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 ...
3
votes
1answer
1k views

How can I execute Drush commands programmatically?

I'm working on a Drupal 8 site, and part of the requirement is giving the client a page where they can click a button to do a particular task. I am able to do this using a Drush command from the ...
1
vote
2answers
2k 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
225 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
40 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
673 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 ...
2
votes
2answers
537 views

Git workflow for Composer-based projects

I would like to install/manage Drupal with Git, Drush, and configuration synchronization. Should I add core/ and vendor/ into the .gitignore so that instead of pushing/pulling core I simply update ...
0
votes
1answer
104 views

Drush 7 @self picks configuration from aliases.drushrc.php randomly

I'm trying to index Search API Solr using Drush 7 on platform environments, but the drush search-api-index command is failing for a very strange reason. There are clues of the problem below, but I'm ...
1
vote
1answer
196 views

Drush Migration between distant DB and local DB?

I'm trying to set migrations between an online D6 website and a local D8 one. So I want to connect to D6 DB like this: drush @vmdevd8ce migrate-upgrade --legacy-db-url=mysql://d6dbuser:d6dbpass@...
-1
votes
1answer
46 views

Downloading, extracting and deleting a Drupal archive all in one go [closed]

In a shared CentOS with Bash I ran under ~/public_html/example.com: composer require drupal/drupal The output was one dir and two files: vendor/ composer.json composer.lock That's not what I ...
0
votes
1answer
249 views

Class not found in drush command definition

In the drush command definition hook for the Node Revision Delete project I have the following code: use Drupal\node_revision_delete\Utility\Time; ... function node_revision_delete_drush_command() {...
1
vote
1answer
140 views

Is drush.wrapper used anymore for Drush 8? How to use for Windows?

We have 3 devs working on a Drupal 7 site. Drush 8 is provided via a local composer file drush/drush:~8.0. A drush.wrapper exists in the project root containing: cd "`dirname $0`" DRUSH_ALIAS_FILE="./...
3
votes
2answers
425 views

Having multiple Drush instances for different core versions

So in my environment, I have some websites on Drupal 7 and some on Drupal 8, and since the latest Drush 9 works with Drupal 8.4+ I was wondering if there's a way to be able to have both Drush 9 and (...
0
votes
1answer
76 views

How to use drush locally with Acquia Dev Desktop2 and upgrade core

I just a new project in Drupal 8 and it's hosted on Acquias cloud using Dev Desktop 2 (DD later on). Now the project is working fine, but i can't use drush at all, as the settings.php is generated by ...
0
votes
2answers
271 views

Bulk user creation

We manually create users via the Acquia Cloud Sites Factory. I want to create a script that bulk creates users at one time using a .csv file with just username, email, and password. I know I can use ...