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

How can I delete all blocked users with Drush?

How can I delete all blocked users with Drush? I have hundreds of blocked users from spammers. I want to delete all these users. I tried doing it through the web interface, but this only works for about 20 users at a time. I have 60 pages to…
Will
  • 812
  • 3
  • 11
  • 21
2
votes
3 answers

Not able to run drush in windows

I have installed Drush-5.4-2012-06-04-Installer-v1.0.18.msi in the location C:\ProgramData\Drush by default. I run the program and moved to drupal working directory. When I type drush it is showing "drush is not recognized as an internal or…
Micky
  • 23
  • 1
  • 4
1
vote
2 answers

Drush can't update : Cannot redeclare system_help

I am trying to use drush to update my drupal core but in some cases (not all) I get PHP Fatal error: Cannot redeclare system_help() (previously declared in /mysite/modules/system/system.module:46) in…
bicatu
  • 105
  • 11
1
vote
2 answers

What are the best deployment Tools & Best Practices for Drupal Sites Databases

I've been asked to help the Developpement Team of an information/news centric website based on drupal 7 with the goal of automating the deployment from staging to production, Currently everything is done manually and lots of mistakes are made, thus…
EddardOmeka
  • 795
  • 5
  • 11
1
vote
1 answer

drush site sync with aliases

I configured site aliases for dev and staging site. I have /sites/default/aliases.drushrc.php aliases file with this content: '/home/drupaltest', …
Hubidubi
  • 850
  • 4
  • 18
  • 34
1
vote
1 answer

"Undefined property: stdClass"

This error suddenly occurred when Pressflow was added to our Drupal installation. It is coming from a custom module that, prior to Pressflow seemed to work fine. After the addition of Pressflow, running Drush causes this error to display on screen.…
sea26.2
  • 376
  • 1
  • 5
  • 23
1
vote
1 answer

Drupal 7 to 9 migration - how to customize the migration yml generated by migrate-upgrade

Am trying to customize migrations so that i can map the data to specific fields but after i edit files am not able to place then to active configuration successfully. My process so far how i generated the files Step 1. Generation of migration…
dannjoroge
  • 608
  • 1
  • 8
  • 19
1
vote
2 answers

Configuring Xdebug CLI debugging in PhpStorm on local Windows/XAMPP environment

I was looking a lot but couldn't find any reliable and relatively easy-to-follow answer on how to configure Xdebug CLI debugging in PhpStorm on a local Windows/XAMPP environment. The context of my question is: I am willing to configure Xdebug so…
Adamssef
  • 95
  • 1
  • 11
1
vote
1 answer

ddev pull command errors at importing files from remote dev env

I am trying to setup DDEV on a Drupal 10 project pulled from Acquia Cloud Platform. Following the docs related to Acquia integration, I got to the point where the DB is imported as expected, but I get an error when pulling the files: Obtaining…
Alex_Dms
  • 157
  • 3
  • 11
1
vote
1 answer

Why can't I execute vendor/bin/drush (no execute permission on the file)

I have a docker and DDEV setup running on a linux/amd64 machine. While all commands are working as expected, does ddev drush ... not. This error is given: /mnt/ddev_config/.global_commands/web/drush: line 14: /var/www/html/vendor/bin/drush:…
Joehoe
  • 183
  • 3
  • 13
1
vote
0 answers

How do I call a theme function from Drush command?

I would like to use a function defined in (active) custom theme (i.e. mytheme.theme) in a Drush command which is defined in a custom module, but it does not seem to be available and I cannot find a way to access it. Can this be done, and how?
Vladimir MS
  • 136
  • 6
1
vote
2 answers

Drupal deployment: how to handle Database?

I've spend two days reading questions on SO, blog posts, forums, etc. Most of that information, it's old. I'm building a site on my Ubuntu box using Drupal 7 (with Drush) and GitHub for repo hosting. I have SSH access to the production server. After…
fedeisas
  • 1,991
  • 2
  • 22
  • 34
1
vote
1 answer

Drush cim proper workflow

We have a DRUSH CEX set under config/sync folder. Our 2 developer are working on the same project. Now here's the situation Dev 1 ran drush cex and his config was exported Dev 2 had a few changes in the CMS but didn't run drush cex Dev 1 push his…
MadzQuestioning
  • 3,341
  • 8
  • 45
  • 76
1
vote
1 answer

Terminus drush config:import detecting no changes

I cloned a multi-dev environment to my local machine and the website is working fine. I have the database, files, and code working on the local machine. The problem I'm encountering is when I make changes to a content type like adding a new field in…
edelcodes
  • 67
  • 7
1
vote
2 answers

How can I find out the name of a particular permission?

I'm trying to give permission to a role on my Drupal site by using the Drush command. The permission to "Article: create new content" should be given to the test-role role. drush role-add-perm 'test-role' '#####' I'm not able to figure out what to…
Reddy Rohit
  • 25
  • 1
  • 4