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

wp user create sunny [email protected] --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

wp user set-role username/id administrator

Posted

in