Skip to content

Instantly share code, notes, and snippets.

@ankyit
Last active March 19, 2019 04:20
Show Gist options
  • Save ankyit/994acfd2a4968c3f775055cde37ffeaf to your computer and use it in GitHub Desktop.
Save ankyit/994acfd2a4968c3f775055cde37ffeaf to your computer and use it in GitHub Desktop.
wp-cli
### Go to the WordPress installation directory and apply following commands
1. To get list of installed plugins
wp plugin list
### 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'
#### 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