Questions tagged [drush]

drush is a command line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt.

See http://drush.ws, the homepage for the drush project. It contains many important resources for drush users.

[A list of modules that include Drush integration.][3]

(drush is not a module)

[3]: http://A list of modules that include Drush integration.

346 questions
0
votes
1 answer

Drush not runnig on ubuntu18.10

while running Drush command on ubuntu 18.10 it gives Command 'drush' not found, did you mean: command 'rush' from deb rush Try: sudo apt install I install composer globally and used $ composer global require drush/drush installed drush $ composer…
0
votes
1 answer

Drush 9 sql:sync error: no database record could be found for source @local

I just installed a new Drupal 8 and it comes with Drush 9, and I was trying to set up everything to use the command sql:sync or config:pull to have my local and staging syncronized but everytime I run the command 'drush sql:sync @local @stage' I get…
jperdior
  • 33
  • 1
  • 5
0
votes
1 answer

Get drush and composer to work in the Visual Studio Code terminal

I cannot use the terminal with Drush in Visual Studio Code. Every time I ran drush or composer I get the following error: drush : The term 'drush' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the…
0
votes
0 answers

getting ddev and drush site install to work for multisite install

I am trying to create a new drupal 7 multisite from my ddev web container. While drush si runs fine, creating another db and site fails. I run ddev ssh from the host and then issue a drush site-install --sites-subdir=mysite…
macbert
  • 772
  • 2
  • 11
  • 29
0
votes
0 answers

Drush cim command causing PHP fatal error on windows machine

When running drush cim/cr commands in a Drupal 8 (core 8.5.5) project i get the following error: Fatal error: Default value for parameters with a class type hint can only be NULL in…
lordZ3d
  • 540
  • 6
  • 20
0
votes
2 answers

Drush installation

I'm new at drupal development, and I installed module_builder now I try to install Drush I just download this, but don't now how to install it on my windows computer, I have a single website. Couldn't find a good tutorial to install it. have someone…
user001
  • 441
  • 3
  • 8
  • 24
0
votes
1 answer

Unable to load dynamic library 'newrelic.so'

While running 'drush status' in other directory, it shows following error message. PHP Warning: PHP Startup: Unable to load dynamic library 'newrelic.so' (tried: /usr/lib/php/20180731/newrelic.so (/usr/lib/php/20180731/newrelic.so: cannot open…
0
votes
1 answer

Drupal 8 Stylesheet Changes Have to Rebuild Cache Everytime. Is There a Better Way?

I'm converting a static website into a Drupal 8 template and everytime I change something in the stylesheet I have to do 'drush cr'. Is there a better way to do this? I've disabled CSS and JS aggregation and I've followed everything listed on this…
japonix
  • 43
  • 1
  • 7
0
votes
0 answers

Execute commands in shell using root user

I am trying to execute a command in remote machine through shell script. That command needs to be executed as a root user. After logging in to remte machine with my normal ID, then execute the command(which is there is different path) in a specific…
Sridhar Adurthi
  • 131
  • 2
  • 14
0
votes
1 answer

Drupal - how to find module names for Drush install?

I have a Drupal installation within a Docker container. I need to install and enable a bunch of modules for which I can use container require drupal/ followed by drush en -y and it works. Now there are a few modules that…
Craig
  • 1,929
  • 5
  • 30
  • 51
0
votes
1 answer

Increasing memory limit for Drush 9 (without changing php.ini file)

I'm trying to run: drush updb with drush 9.3.0 on my Drupal 8 site and I'm getting error: The command could not be executed successfully (returned: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in…
MilanG
  • 6,994
  • 2
  • 35
  • 64
0
votes
3 answers

Is it possible to change Drupal8 admin password using Drush?

Is it possible to change Drupal8 admin password using Drush? Or fetch the password in any other way. I have forgot the administrator password for the local Site. I can access the database and also able to access the user related table. As in my…
moshiuramit
  • 115
  • 2
  • 11
0
votes
1 answer

How to change drush.php to drush as an alias on windows 10?

I have installed drush launcher & placed .phar file after making it executable but the drush commmand only runs with drush.php. I also made a bat file with following code but it didn't work. @echo off php "%~dp0\drush.phar" %*
Drupal WC
  • 1
  • 2
0
votes
1 answer

ddev using drush behind proxy fails to connect

running ddev excec drush up module -y fails behind a proxy. so I went in the container with ddev ssh and added the proxy to a .wgetrc file inside the users home dir. I am running ddev in win10 and linux (didn't drush up in linux yet) behind a…
macbert
  • 772
  • 2
  • 11
  • 29
0
votes
1 answer

How do I add field values to the `drush user-create` command?

I have been Googling this, read the drush documentation and searched StackOverflow, but I can't find an answer to this question. I currently use drush user-create someone@example.com --password="somepassword" to create a user. Then there are drush…
vrijdenker
  • 1,371
  • 1
  • 12
  • 25