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
1
vote
1answer
22 views

Is there a way to list permissions for a given module?

Using Drush 9, I am trying to automate the creation of a role and I need to assign permissions to it. I see that I can use drush role-add-perm to do the assignment itself, but I can't find a command ...
2
votes
2answers
60 views

How can I exclude some entities in “drush entity:delete” command?

I want to delete all content of custom entity type except some specific items, I found drush entity:delete CUSTOM_TYPE command to delete all contents but couldn't exclude some items from deletion in ...
1
vote
1answer
646 views

How to install a drupal distribution using Drush quickstart command?

What is the command for drush qc to install a drupal distribution? I'm trying to install this one: https://drupal.org/project/onepagecv
6
votes
3answers
2k views

How to run drush tests from the command line?

I installed drush via composer, initially drush 8 was installed. I then try to run tests via drush test-run command,unfortunately I get the following output indicating the command is not found. (...
0
votes
0answers
15 views

Drush migrate can't find database

I am running a local Drupal 8 site via Aquia DevDesktop. I enabled the Migrate modules: Migrate, Migrate Drupal, Migrate Drupal IU, Migrate Plus and Migrate Tools. When I run a migrate command in ...
3
votes
1answer
1k views

Why does cloning a private git repository via Drush make file fail using SSH authentication?

I have multiple private git accounts set up with SSH system's keychain authentication for each git repo. It works to clone private git repos from command line: git clone git@git_ssh_alias:git-...
1
vote
1answer
431 views

Updating modules fails with XAMPP on Windows 10

I'm pretty sure I installed Drush 8 correctly on Windows 10. I ran the command window as administrator. I changed to my Drupal directory, but I get "Command pm-update needs a higher bootstrap level to ...
0
votes
0answers
17 views

D7 to D8 site migration and location of migration log

I'm using drush to migrate a D7 site to D8. I'm getting several errors in the drush migrate-import --all step. D8 site is installed using a bash script that executes: drush site-install standard -...
1
vote
3answers
978 views

“drush up” fails with “pm-updatestatus failed.”

When I execute drush up, it returns the following error message. The command could not be executed successfully (returned: The filename, directory name, or volume label syntax is incorrect, code:...
1
vote
1answer
84 views

Is “parent” supported in 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 ...
11
votes
0answers
10k views

How to configure Drush on Windows 7? [closed]

I'm working on drupal in Windows environment. Most drupal developers recommend to use Drush. I know it is a very useful command line tool for drupal development. I downloaded the Drush installer for ...
7
votes
7answers
7k views

When attempting to run drush “: No such file or directory”

I've been bashing my head against the wall all day trying to figure out why Drush has suddenly stopped working. I've re-installed via composer, tried different versions, always the same error. If I ...
0
votes
1answer
363 views

Getting Drush to play with MAMP and Acquia

I have a Mac workstation which is shared between two users, User°1 who first installed the machine, and User°2 who came along after, both administrators. User°2 has installed Drush using brew and ...
2
votes
3answers
2k views

Unable to connect to local MySQL db using drush sql-sync

I'm attempting to use drush sql-sync to sync my prod database to my local dev copy, and everything seems to work until drush attempts to log into the local MySQL. When it does, it throws this error: "...
2
votes
0answers
154 views

Edit nodes from command line

I am looking for a way to manage nodes from command line. I am aware of drush and drush-entity, and it can do the job in a way, but I thought it could be easier having the nodes stored in files (...
0
votes
3answers
71 views

Error during config export

I have added one field in the content type. So when trying to export configuration it gives an error $ pwd $ /c/xampp/htdocs/Test/docroot/sites/testone.com $ ../../../vendor/bin/drush config:export -...
0
votes
1answer
377 views

Drush not seeing right CLI PHP version

I am not able to get Drush to recognize the installed PHP 5.4.20 (cli). $ php -v PHP 5.4.20 (cli) (built: Oct 10 2013 18:41:48) $ drush Your command line PHP installation is too old. Drush requires ...
0
votes
1answer
269 views

The drush command 'migrate-manifest' could not be found

Not sure if it's a dupe issue, couldn't find it. Just trying to run an upgrade in drush8 and get: The drush command 'migrate-manifest' could not be found. Run drush cache-clear drush to clear the ...
3
votes
2answers
2k views

Drush bootstrap level error

Im running onto some issues with Drush. I worked with php 5.3 and after upgrading to 5.5, i ran into some issues and decided to downgrade my PHP version back to 5.3. Now im running into the issue that ...
0
votes
2answers
423 views

Cannot install Drupal via drush in the root of site

I am going absolutely insane. I have been up for several hours scouring the internet, installing, removing, installing, removing, and I CANNOT get Drupal (7 or 8) to install at the root of a site (...
1
vote
2answers
64 views

Deployment using Composer replacing old style install but issues with legacy Drush

I took a Drupal project that was created awhile back via downloading a tar file and recreated it on a local via composer with drupal-project. The recommended files were committed to git (i.e. no ...
0
votes
2answers
370 views

How to handle multiple URLs in Drupal migrations

I have a drupal migration that also uses migrate plus from a feed URL that can be queried. For example the migration can work for a single response from the feed at source: plugin: url ...
1
vote
1answer
1k views

How to get Drush in my path in Windows 10?

I have Drush 9 installed on Windows 10. I installed it via Composer using Lando. I want to put this drush in my system path so that I can use it from cmd.exe, Powershell, and so on. I want to do ...
0
votes
0answers
61 views

How do I uninstall Drush 9 and install Drush 8?

I take it I can't manage Drupal 7 sites with drush 9 so I'm trying to install Drush 8. But first I have to remove 9. I tried composer global remove drush/drush but it gives errors: drush is not ...
2
votes
1answer
41 views

Xdebug not working over Drush

I'm using Drupal VM and the Drush Launcher (0.6.0). Whenever I try to Xdebug, PhpStorm notices, but it never actually reaches my Drush command. It stops at running Drush. This seems to have started ...
0
votes
1answer
360 views

Can't use drush site-install to drop tables and reinstall in MAMP

I have a local multisite instance running MAMP 3.0.7.3, and I can't use the drush site-install command to do a re-install of one of my sites without actually dropping the database first. If I try the ...
0
votes
1answer
73 views

Can Drush 9 be used with this core version?

I have a Drupal 7 site that was not built with Composer. I have been using Drush 7 with it, but about a week ago, drush wd-show --tail stopped working, I'm not getting any output. I installed Drush 9, ...
0
votes
0answers
41 views

Drush 9.x fatal error when running drush status (or any other drush command) [duplicate]

I'm running Drupal 7.67 on a Debian machine with PHP 7.2 and MySQL 5.6. My drupal installation is working perfectly fine with no warnings to find under /admin/reports/status. I've installed Drush 9.x ...
0
votes
0answers
20 views

Make Drush 9 @self path include full site

I've just upgraded to Drush 9 and I'm the root path for @self is only the web-folder and therefore not the full drupal site. That behaviour isn't intended, right? The result is that changes within the ...
1
vote
1answer
219 views

How to use Drush with Apache Directives?

My Drupal installs are set up with apache environment variables/directives (SetEnv DB_NAME somedb) to store the database name, username and password. It appears that Drush isn't able to use these by ...
3
votes
2answers
151 views

Load Aegir's site credentials from a php function

I'm using Aegir and want to inject some data into a site's vhost. And I managed to do it thanks to this post. My problem is I can't find an Aegir function to load a site's dabase configurations from ...
4
votes
2answers
572 views

Custom redirects and Drush/updates

I usually update Core with Drush, because it's so easy and wonderful, but I have a custom htaccess and it always overwrites it, forcing me to rely on a checklist where I have to go and put my custom ...
9
votes
3answers
2k views

Drush Scripting? Or Batch API?

We have an Ubercart website that handles large volumes of orders daily, processes them and runs other tasks like billing, delivery routing, and future order creation. Some of these tasks are heavy ...
1
vote
1answer
465 views

cannot use some drush commands

I am running into some trouble with drush I can't pm-enable the modules I just downloaded with it. I did some research but none of the solution worked for me, most cases involved switching "localhost" ...
3
votes
1answer
444 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
395 views

Translate untranslated strings

I downloaded and enabled translations for my Drupal core and modules using these Drush commands: drush dl l10n_update && drush en -y $_ drush language-add lt && drush language-enable $...
-1
votes
1answer
21 views

User password reset link leads to access denied page

Command: drush uli Output: http://default/user/reset/uid/..../...hash.../login The output URL normally logs you in automatically, but it gets takes to access denied error instead.
-1
votes
1answer
28 views

Patch Status for 'cweagans/composer-patches'?

It seems that 'Drush Patch File' (https://bitbucket.org/davereid/drush-patchfile/src/master/) isn't compatible with Drush 9. It, however, has one important function - Patch Status - which enables ...
2
votes
1answer
96 views

Using Drush without local copy of Drupal, only calling site aliases - No site aliases found

We have a project which does not contain a Drupal codebase. It's Cypress.io test with Drush 9 added using Composer. I would like to execute Drush with site alias to work with the remote site while ...
0
votes
1answer
41 views

Drush cannot find your database connection details

I try to install open social using drush-8.3.0 and drupal-8.7.5. The first step is to run composer create-project goalgorilla/social_template:dev-master public_html/peer/opensocial --no-interaction. ...
0
votes
0answers
18 views

Drush isn't connecting to my database

I have a Drupal install on a CentOS development server. Running drush from outside my web directory returns as you'd expect (a list of Drush commands). Running drush from inside my web directory ...
0
votes
1answer
30 views

Drush custom command not found in context of running --root option

Drush 8. Have the custom module with the custom command. Call drush custom-command works as expected. Call drush --root=sites/subsite custom-command thiggers the error: The drush command 'custom-...
0
votes
1answer
341 views

How to configure drush with Acquia DevDesktop on Windows to access through proxy?

There are some answers to similar questions using WAMP, but now drush is not recommended under Windows (unless using DevDesktop, which I am). And this is seriously frustrating. I followed the ...
2
votes
1answer
127 views

Set site URI for drush uli without 'default'

Versions discussed: Drupal 8.6.13, Drush 9.6.1. This is somewhat similar to How to have an environment specific drush.yml? except that the other thread is now four or five months out-of-date and ...
-2
votes
1answer
86 views

How does `drush cim` find and handle the config-directory? [closed]

I would like to know where the config directory is, and how drush cim command exactly handles it? Edit: The old title (i.e. "Where is Drush's command-specific documentation?") was because I thought ...
0
votes
3answers
367 views

Drush can't DL modules - xml error

I'm working in a Linux server with PHP 5.3.3 installed along with Drush 6.2 (?) I'm unable to dl modules to the server. When I add --verbose to the command, I see the following. Executing: wget --...
0
votes
1answer
54 views

How can I query a database created using the previous core version from the new core version?

I want to query users, nodes etc in my D7 database that I am currently migrating to D8 to compare with the migrated content. I want to use custom Drush commands to run some checks. Is this possible?
0
votes
1answer
131 views

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
vote
2answers
2k views

How do I convert a pre-existing site to a Composer-managed application?

The latest Drush 9.x version recommends that Drupal 8 sites will be built using Composer, with Drush listed as a dependency. However, when you install Composer and Drush globally per step #1 on http://...
4
votes
2answers
3k views

How I change my Site URI in Drupal 8

In Drupal 7 I put in settings.php this: $base_url = 'http://mysite.local'; And when I run: $ drush uli http://mysite.local/user/reset/1/1460387746/mTqwCdJ7hi_pmrPRuFOScYwFtoHTmVAW07MV23O3UVk/login ...