如何使用wp-cli更改用户密码?


Answers:



10

首先检查用户名:

wp user list

然后更改密码而不会在历史记录中留下任何痕迹

wp user update admin --prompt=user_pass

1

只是附加一件小事;有时密码可能以=字符开头。正因为如此,我更喜欢使用这种表示法。

wp user update USERNAME --user_pass="PASSWORD"
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.