Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 24060

Use it for questions about the command line shell and Unix scripting interface for Drupal (a.k.a. Drush).

5 votes
Accepted

user:role:add for email addresses in Drush 9/10?

Maybe there are better ways, but the following should work: drush user-add-role "power user" $(drush user-information [email protected] --field=name) You get the user name from the e-mail address …
hansfn's user avatar
  • 1,673
5 votes

How can I dynamically set the site URL (in Drush9+)?

The only solution I see is to write a little wrapper script that always calls drush with the --uri option, like: drush --uri $MY_SITE_URL_VAR $@ Recommended solution A much simpler solution is to use …
hansfn's user avatar
  • 1,673
0 votes

How to resolve drush error: the file name, directory name, or volume label syntax is incorrect

Hopefully, you should be able to discover which file/directory name is causing the problem, by making Drush print some debugging info: drush -d -d status …
hansfn's user avatar
  • 1,673
1 vote

Getting drush to install missing dependencies automatically into libraries

It's the module that handles "libraries" dependencies - not Drush. AFAIK you can't force Drush to ignore hook_requirements implemented by the module in (the install file). … Some modules, for example Colorbox, provides a Drush command to download the missing libraries dependencies, but it's not automated. …
hansfn's user avatar
  • 1,673
0 votes
Accepted

How can I use Drush 8 command to enable the site set up bin the Acquia DevDesktop to online ...

If you had use the correct term, you would have been pointed to for example the following question which has the info you need: drush sset system.maintenance_mode 0 …
hansfn's user avatar
  • 1,673
0 votes

Drush Permissions Issue

This isn't a Drush issue. It's about the configuration of your shell. The file creation mode is controlled by the umask. …
hansfn's user avatar
  • 1,673
0 votes

How to test upgrade availability with drush exit codes?

The exit codes are defined in includes/drush.inc. Your logic seems sound, but I can't verify that is correct/always will work.
hansfn's user avatar
  • 1,673
2 votes
Accepted

Confirm drush is reading policy file

If drush pm-update, gives you the message "This codebase is assembled with Composer instead of Drush. [...]" you know that Drush uses the file. …
hansfn's user avatar
  • 1,673
0 votes
Accepted

Changing Drush path

Anyway, replace PATH="$HOME/.composer/vendor/bin:$PATH" with PATH="/opt/drush-8.x/vendor/drush/drush:$HOME/.composer/vendor/bin:$PATH" assuming you may have other stuff in $HOME/.composer/vendor/ …
hansfn's user avatar
  • 1,673
1 vote
Accepted

Using drush when database and web server are separate

Either remove the user line from that file, or run Drush as another user than root (which might not have a .my.cnf file.) …
hansfn's user avatar
  • 1,673
0 votes

How do I change the transport for remote drush alias calls

Read https://github.com/drush-ops/drush/issues/2367 …
hansfn's user avatar
  • 1,673
0 votes
Accepted

Use drush instead of vendor/bin/drush

The script must be executable: chmod u+x drush The script must be in the (executable) path. … Since it's not recommended to have the current directory in the path (for very good security reasons), the solutions is to call Drush as ./drush instead of just drush. …
hansfn's user avatar
  • 1,673
0 votes
Accepted

How to limit "drush pm-updatestatus" to check only given project?

Since drush pm-updatestatus is so noisy, the "Checking available update data" output is IMHO debug output that shouldn't be displayed, I often use drush pm-releases (rl) in stead. … Another work-around is to throw away the debug output: drush pm-updatestatus MODULE 2> /dev/null …
hansfn's user avatar
  • 1,673
2 votes
Accepted

How do I install Drush 9 on Windows 7 with Composer?

The Drush 9 documentation is pretty clear: Install Drush locally, in your Drupal site, using composer. You can install Drush Launcher in addition if you want it more convenient. … Without Drush Launcher, you can use the site local Drush be running vendor\bin\drush some-drush-option from your Drupal site root. No need to modify any paths. …
hansfn's user avatar
  • 1,673
0 votes

How to manage multiple drupal 7/8 sites with multiple drush versions

On the dev server you have the phar-installed global Drush 8 and the site-local Drush 9. … It might work to upgrade the phar-installed Drush 8 to 8.15, but why not use Drush Launcher (which is recommended) and install in globally instead of Drush. …
hansfn's user avatar
  • 1,673

1
2 3 4 5
15 30 50 per page