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).

2
votes
1answer
24 views

Why am i getting this Drush error after updating a site? [on hold]

I use Drush 8.1.17 to update my Drupal 7 sites, and as I have been updating my sites today after the latest security update I have noticed that after I update a site if I try to run any update related ...
0
votes
0answers
15 views

Why did most of my Drush commands disappear? [on hold]

Drush 9.5.2 with Drupal 8.6.3 (updating to 8.6.6 once I get Drush working again). We manage a lot of Drupal 8 sites, but for some reason, Drush stopped working properly on just one of them. Most ...
-4
votes
0answers
20 views

How I can change drupal site UUID and its runing in docker?

My Docker file version: '3.1' services: drupal: image: drupal:8-apache ports: - 8082:80 volumes: - /var/www/html/modules - /var/www/html/profiles - /var/www/html/themes # this takes ...
-4
votes
0answers
19 views

Table not showing in database drupal 8

In a custom module in module.install I'm creating two tables in the hook_schema hook. I've uninstalled and reinstalled the module and cleared the cache but the tables still don't appear in the ...
0
votes
1answer
18 views

Migrate content from drupal8 to drupal8 programmatically with Node::load and Node::create

Basicly I want to migrate content from one drupal8 instance to another. they are mostly identical with some small changes. first step is to migrate the content type via drush gen module module and ...
0
votes
0answers
24 views

This import is empty and if applied would delete all of your configurations

Customer bought a theme that has Commerce plugin installed with sample data. Anxious to get running and try out the new configuration system, I did what I do prior to Drupal 8.6. Commit everything but ...
0
votes
1answer
26 views

How to check for differences in config

Is there any way to check for differences with config in Drush? I checked the list of drush 8 config commands and I couldn't find anything. The reason I need this is that I have a site that runs ...
0
votes
0answers
12 views

Error on drush command: In ThemeHandler.php The theme does not exist

I manage to broke the default theme in development and now could not access the administration interface nor could I change the theme via drush. The way I broke the default theme is by changing the ...
-4
votes
2answers
32 views

Is there a single Drush and or Drupal console command to export and import all configurations?

Normally I goto Config Sync then export all > save config tar.gz > import. Can this be achieved with one command?
0
votes
1answer
24 views

How to clear all caches with Drush 9?

https://drushcommands.com/drush-9x/cache/cache:clear/ this doesn't give any option to clear all caches. All you get is to choose from 0-7, old drush cc all or cr all are gone. Eg. root@dev:/var/www/...
0
votes
2answers
27 views

'drush' is appended to each path breaking its commands

I don't normally use Drush on Windows, but tried it and noticed that it appends drush as a kind of root directory for any action, thus breaking said action. For example, drush dd gives: The ...
0
votes
1answer
51 views

Is there a way to clear the cache without dropping tables?

I am new to Drupal and realized that when we clear cache in Drupal 'drush cr'. It executes drop db commands. This is a very big security issue in our company because granting drop privileges to a ...
0
votes
1answer
12 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
27 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,...
0
votes
1answer
16 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 ...
1
vote
2answers
27 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
41 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
37 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
19 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
34 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
59 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
48 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. ...
-1
votes
0answers
58 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 ...
4
votes
3answers
98 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
64 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
35 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
23 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
42 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
48 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
59 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
40 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
62 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
67 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
35 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
32 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
33 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
77 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
66 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
102 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
35 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
28 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
186 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
120 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
32 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
160 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
43 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
33 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 ( '...