entity-command icon indicating copy to clipboard operation
entity-command copied to clipboard

Add --all argument to reset-password command

Open derweili opened this issue 5 years ago • 1 comments

Feature Request

According to https://github.com/wp-cli/entity-command/issues/249#issuecomment-485042257 the wp user reset-password command ist intended to reset, the user's password (e.g. to handle a password breach)

In this scenario it is required to reset all passwords for all users. Therefore I would expect the command to have an --all argument which gives the user the possibility to reset all passwords of all users at once.

Of cause this is possible to combine the wp user list with the wp user reset-password command achieve the same result. But since many other commands have an --all argument I would expect to have it available for the wp user reset-password command, too.

derweili avatar Feb 05 '20 14:02 derweili

A --role argument would be nice too.

cristian-rossi avatar Jun 03 '20 17:06 cristian-rossi

+1. For now I do it by role, via:

wp user reset-password $(wp user list --fields=ID --role=administrator)

Do you know how to do this for all roles via wp user list? Is it as simple as removing the --role param like this?

wp user reset-password $(wp user list --fields=ID)

JiveDig avatar Jan 09 '23 21:01 JiveDig