Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/richardbporter/drush-users-commands
Drush commands to interact with multiple Drupal users.
https://github.com/richardbporter/drush-users-commands
drupal drush list-users toggle-users user-list
Last synced: about 2 months ago
JSON representation
Drush commands to interact with multiple Drupal users.
- Host: GitHub
- URL: https://github.com/richardbporter/drush-users-commands
- Owner: richardbporter
- License: gpl-3.0
- Created: 2017-12-07T17:00:08.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2024-09-05T02:39:45.000Z (4 months ago)
- Last Synced: 2024-10-07T08:08:48.197Z (3 months ago)
- Topics: drupal, drush, list-users, toggle-users, user-list
- Language: PHP
- Homepage:
- Size: 179 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![CI Status](https://github.com/richardbporter/drush-users-commands/actions/workflows/ci.yml/badge.svg)
# drush-users-commands
Drush commands to interact with multiple Drupal users.## Requirements
- Drush ^12.2 || ^13.0
- Drupal ^10.2 || ^11.0## Installation
Since this is a [site-wide Drush command](https://www.drush.org/latest/commands/#site-wide-commands), it will only be found when installed in certain directories. It is recommended to update your Composer installers path for drupal-drush packages to:
```
"drush/Commands/{$name}": ["type:drupal-drush"]
```
Then install it as usual:
```
composer require richardbporter/drush-users-commands
```
Note that the directory the package is installed to (UsersCommands) differs from the repository name (drush-users-commands) due to the [installer name property]( https://github.com/composer/installers#custom-install-names).## Commands
### drush users:list
List all Drupal users in a table format. See `drush users:list --help`
for filtering options.Aliases: ulist, user-list, list-users
### drush users:toggle
Block/unblock all users while keeping track of previous state.For example, say you have the following five users with corresponding
statuses:- admin -> active
- foo -> blocked
- bar -> active
- baz -> active
- qux -> blockedRunning `drush users:toggle` will block admin, bar and baz. Running
`drush users:toggle` again will unblock admin, bar and baz but foo and
qux stay blocked since that was their previous status.Aliases: utog