Skip to content

Instantly share code, notes, and snippets.

@wokamoto
Created March 20, 2014 08:45
Embed
What would you like to do?
[WordPress] wp-cli でユーザのパスワードを変更
$ cd /path/to/wordpress
$ wp user list
+-----+-----------------+--------------------------+---------------------------------+---------------------+---------------+
| ID | user_login | display_name | user_email | user_registered | roles |
+-----+-----------------+--------------------------+---------------------------------+---------------------+---------------+
| 1 | hogehoge | hogehoge | hogehoge@example.com | 2014-03-20 00:00:00 | administrator |
+-----+-----------------+--------------------------+---------------------------------+---------------------+---------------+
$ wp user update 1 -user_pass=fugafuga
Success: Updated user 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment