Last active
March 19, 2019 04:20
-
-
Save ankyit/994acfd2a4968c3f775055cde37ffeaf to your computer and use it in GitHub Desktop.
wp-cli
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Go to the WordPress installation directory and apply following commands | |
1. To get list of installed plugins | |
wp plugin list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Go to the WordPress installation directory and apply following commands | |
1. To get list of users | |
wp users list | |
2. To get list of user login | |
wp users list --field=user_login | |
3. Update user password | |
wp user update <User_ID> --user_pass='Suer_Secure_Password' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### WordPress Command line wp-cli install | |
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar | |
php wp-cli.phar --info | |
chmod +x wp-cli.phar | |
sudo mv wp-cli.phar /usr/local/bin/wp | |
#### Check if the installation works well | |
wp --info |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment