New answers tagged

5

The latest releases of Drupal 8 are "supported but not recommended" on Drush 8. Drush 8 is still necessary if you are not using Composer to build your site. Composer is recommended for all Drupal 8 sites because sooner or later you are likely to need a module that requires Composer. If your site does not yet need such a module, though, then it is possible to ...


1

You could use drush cim and create a yml for your role like for example langcode: en status: true dependencies: { } id: myrole label: 'My super Role' weight: 1 is_admin: false permissions: - 'whatever 1' - 'whatever 2' And if you don't know what perms your module brings, you could use that simple eval code with drush: drush php-eval '$p = Drupal::...


1

$ drush entity:delete node --bundle=article --exclude=9,14,81 or $ drush entity:delete CUSTOM_TYPE --exclude=1,2,3 I added the --exclude option as a pull request #4175 to Drush. It also works in Drush 9, so you could use this pull request to patch your local Drush like that: "patches": { "drush/drush": { "Add option to exclude entities by ID ...


3

ok mate you want other options and here is the answer: if you look at vendor/drush/drush/src/Drupal/Commands/core/EntityCommands.php you can see the what the function does.... now you need to learn how to make a custom drush commands i assume you are using drush 9 so you can just run: "drush generate drush-command-file" or read: https://www....


0

In my case I was getting a Drupal error Error: Call to undefined function Drush\UpdateService\simplexml_load_file() in Drush\UpdateService\Project::getInstance() (line 74 of phar:///usr/local/bin/drush/vendor/composer/../../lib/ which indicated that the php-xml extension was not installed. sudo aptitude install php7.2-xml fixed the ...


0

To solve this specific issue that I was also having, all you need to do is to provide a drush-aliases configuration as shown in the following example ... $aliases['prod'] = array ( 'uri' => '...', 'root' => '...', 'remote-host' => '...', 'remote-user' => '...', 'os' => '...', 'path-aliases' => array( '%drush-script' => '/...


0

Finally, I found the solution for the above "** ERROR: Drush was not able to start (bootstrap) the Drupal database**". In short, drush was not able to communicate with MySQL. Solution: Add a new system environment variable in the path "C:\xampp\mysql\bin" and restart gitbash. Then try to run above command. It works properly :) . Hope it may help someone.


Top 50 recent answers are included