To install WordPress CLI, run the following command
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
mv wp-cli.phar /usr/local/bin/wp
chmod 755 /usr/local/bin/wp
How to reset WordPress Password using wp-cli
To list all users in WordPress, run
wp user list
To create an Administrator user, run
wp user create USERNAME_HERE [email protected] --role=administrator --user_pass=PASSWORD_HERE
Leave a Reply