Skip to content

Instantly share code, notes, and snippets.

@wokamoto
Created March 20, 2014 08:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wokamoto/9659672 to your computer and use it in GitHub Desktop.
Save wokamoto/9659672 to your computer and use it in GitHub Desktop.
[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