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
3
votes
2answers
539 views

Log output to syslog

I run various Drush commands, including lots of queues, in a loop. I want to see the output in my syslog. I am currently using drush -r /var/www queue-run my_queue_name_here 2>&1 | logger, ...
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?
7
votes
3answers
3k views

Drush command to list ONLY modules which need an update

Drush 8.1.9 & Drupal 7.53. What I'm looking for is a command like 'drush ups' but without all the modules that are [OK] - so when used with an alias of several sites I don't have to scroll ...
2
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 ...
3
votes
4answers
4k 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
0answers
43 views

How to set drush alias for remote site behind jump server?

Drupal 8 site (8.5.3) with drush 8 (8.1.16) both equal on local and remote. Connection to remote is through jump server - log in to jump (ssh -L 2004:remote.com:22 -l username jump.server.com), in ...
-4
votes
2answers
59 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?
1
vote
2answers
232 views

Can't install drush with composer

When I run... composer global require drush/drush:dev-master ...I get... Your requirements could not be resolved to an installable set of packages. Problem 1 - Can only install one of: ...
0
votes
0answers
102 views

drush 9 sql:sync not working

I'm using drush 9 on a remote server and I'm trying to perform a sql:sync. This is my alias: live: host: www.mysite.com paths: drush-script: '/home/wodby/drush-wrapper.sh' files: files ...
-1
votes
2answers
795 views

It doesn't work in the root directory

I'm trying to get Drush to work in a shared environment where I have limited SSH access. I've managed to install Composer and Drush. In PuTTY I can use Drush outside of my Drupal root folder, ie. /var/...
0
votes
1answer
55 views

Drush command from contrib module not recognized

I have installed a new module called S3fs using Composer. When I try to execute /root/.composer/vendor/bin/drush drush_s3fs_copy_local, it shows the following error. Command "drush_s3fs_copy_local" ...
1
vote
2answers
571 views

Can't install Drush on FreeBSD

I'm running FreeBSD 10 with PHP5.3.28 I can't use the port or package to install Drush because it will install the default PHP (5.4) as a dependency. So I installed Drush manually. Then when I ...
0
votes
0answers
204 views

Drush 8.1.18 not working in Drupal 7.63 [duplicate]

Just updated a project to Drupal 7.63. Attempting to execute updb or other commands results in the following error: PHP Fatal error: Uncaught TYPO3\PharStreamWrapper\Exception: Unexpected file ...
0
votes
1answer
27 views

Why is “drush make” installing a library in /sites/all/libraries instead of /libraries?

I am trying to allow prospective users to demo my module on simplytest.me, however, it requires an external javascript library. I recently created a drush make file for the D7 version of this module, ...
2
votes
1answer
1k views

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

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
1answer
112 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
1answer
195 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
212 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 ...
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_*', ...
-1
votes
1answer
335 views

Missing commands in drush 9.3 [closed]

I have installed drush 9 as dependency of my drupal 8 project as explained in: http://docs.drush.org/en/master/install/ cd ${D8_PROJECT} composer require drush/drush Then, I have installed drush ...
0
votes
2answers
53 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
3k views

How to install Drush 8 on Windows 10?

I am currently running Drush 7 and its working fine for D7. But I want to run it for D8 site. I have also seen many post where it is mentioned that Drush 7 support D8 but its not true. So i am ...
3
votes
2answers
3k views

How can I install Drush without Composer?

I've been trying to install Drush for a while but have failed. I have no experience in command line applications. I've seen quite a few tutorials: https://www.drupal.org/node/594744 https://www....
0
votes
1answer
50 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 ...
0
votes
1answer
2k views

Command entity-updates needs a higher bootstrap level to run

I am trying to make drush work on Debian 8 with Drupal 8. Unluckily, executing drush entity-updates returns the following error messages: Command entity-updates needs a higher bootstrap level to ...
0
votes
1answer
245 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/...
4
votes
3answers
118 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 ...
80
votes
5answers
35k views

How to take a site offline using Drush?

How can I take a site offline using Drush?
0
votes
1answer
125 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
83 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
50 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
57 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
2answers
212 views

Drush rsync and drupal composer wrong destination dir

I'm trying to sync two D8 sites. Both set up with drupal composer which means that the directory structure is a bit different than usual. Composer puts drupal files inside web sub directory like this: ...
1
vote
1answer
970 views

drush @sites command doesn't work

The command drush @sites status doesn't do anything. The full command obtained for the process is: /usr/bin/php /home/myuser/.config/composer/vendor/drush/drush/drush.php --php=/usr/bin/php --php-...
1
vote
2answers
36 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 "...
3
votes
1answer
1k views

Change the used PHP version [duplicate]

I have PHP 5.6 and 7.1 on my system. I want to use PHP 5.6 for the Drupal 7 projects, and PHP 7.1 for the Drupal 8 projects. I am having problems getting this setup. In the documentation I found ...
0
votes
2answers
102 views

Running Drush on the server

I want to run Drush on a OpenSuse Linux Version 12.1 box 32-bit machine. I have a server admininistrator that takes care for the backend. What do I need to ask him, in order to get Drush running on ...
3
votes
1answer
2k views

Is there a “registry rebuild” command?

I just did a fresh Drush installation, and now I have version 8.1.15. When I run drush rr, I get the following error message. The drush command 'rr' could not be found. Run drush cache-clear ...
0
votes
1answer
154 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
63 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 ...
2
votes
2answers
2k views

Is it currently possible to install Drush locally on a Windows 10 PC?

Is it possible to install & use Drush locally on a Windows 10 Notebook to manage Drupal sites (on shared hosting) online? I have so far searched in vain, may be in wrong places. The places I see ...
1
vote
2answers
1k views

Install Drush on shared hosting with SSH access?

I have SSH access on shared hosting and I followed this guide to install the composer: https://getcomposer.org/download/ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -...
2
votes
1answer
821 views

No release history available stops dependent modules download

I am creating my first make file to retrieve a custom module 'CUSTOM_MODULE' from github and running into trouble getting the dependent modules to be installed. Here is make file at the Drupal site ...
2
votes
1answer
2k views

How can I update a module to a specific version using Drush?

I am trying to update module entityform 7.x-1.4 to entityform 7.x-2.0-beta4. The current version of the entityform module is 7.x-2.0-rc4. But I don't want to update at this version. Can we update ...
1
vote
1answer
81 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
52 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
vote
1answer
155 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 ...
0
votes
1answer
71 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
70 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 ...
1
vote
1answer
194 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@...