WordPress CLI

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

Advertisement

wp user list

To create an Administrator user, run

wp user create  USERNAME_HERE  USER@DOMAIN.EXTN --role=administrator --user_pass=PASSWORD_HERE
Add a comment

Leave a Reply

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

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Advertisement