Categories
wp-cli

Creating a new WordPress user from the command line with wp-cli

wp user create sunny sunny@sunnymorgan.com --role=administrator --user_pass=PASSWORD

It may be simpler to update an existing user. e.g.

wp user update 1 --display_name=Admin --user_pass=PASS

Leave a Reply

Your email address will not be published. Required fields are marked *