sh
drushCommand_php_cli.sh
drush php:clidrushCommand_php_eval.sh
drush php:evaldrushCommand_php_script.sh
drush php:script
14.04.2026 | Michael Ebert, Lothar Ferreira Neumann
drush php commands
Installation with composer:
composer_require.sh
composer require 'drupal/comment_notify'Enable with drush:
drush_pm_install.sh
drush pm:install comment_notifyConfigure it under ../admin/config/people/comment_notify.
Select the Bundle on that you want to enable it. Chose "All Comments" under availible subscription modes and set it as default state.
09.07.2026 | Michael Ebert
Install comment_notify module to have an easy solution to subscribe/unsubscribe to nodes like a forum topic.
drushCommand.sh
drush php
10.03.2026 | Lothar Ferreira Neumann
Test code by opening a PHP CLI with drush
require.sh
composer require erdfisch/group_relationship_field_sync:^1.0@dev --prefer-source
02.05.2025 | Dominik Wille
Require a composer package as git repository
drush_user_information.sh
drush user:information --uid=user_id
output.md
```
--------- ----------- ------------------- --------------- -------------
User ID User name User mail User roles User status
--------- ----------- ------------------- --------------- -------------
1 admin admin@example.com authenticated 1
--------- ----------- ------------------- --------------- -------------
```
02.09.2025 | Mathias Grab
Print user related information via Drush
Dump files of the last 40 days.
files-dump.sh
tar czvf foo.tgz $(for i in $(find media-images 2023-09 -mtime -40 | grep -v / ); do echo $i; done)
If available fd could be a nice alternative for that.
fd find
fd --changed-within 40d
29.09.2023 | Dominik Wille, Marc Hitscherich, Nikolas Kopp
Collect and pack new files from a given time period (last 40 days) with "find"
We ran into a problem with the maillog table in my sql-dump - so we just excluded it from the dump
skip-tables.sh
drush sql-dump --skip-tables-list=maillog
25.08.2023 | Dominik Wille
Skip tables in drush sql-dump
calc-release.sh
#!/bin/bash
latest=$(git tag -l | sort -V | tail -n1)
semver_parts=(${latest//./ })
major=${semver_parts[0]}
minor=${semver_parts[1]}
patch=${semver_parts[2]}
patch_version=${major}.${minor}.$((patch+1))
minor_version=${major}.$((minor+1)).0
major_version=$((major+1)).0.0
echo "latest: $latest"
echo "patch release: $patch_version"
echo "minor release: $minor_version"
echo "major release: $major_version"
13.11.2025 | Marc Hitscherich
Calculate next suitable version tag from git
mysql8 to mariadb.sh
cat olddump.sql | sed -e s/uca1400_as_ci/utf8mb4_general_ci/ | gzip > newdump.sql.gz
12.03.2026 | Pascal Crott, Michael Böker