CLI Commands

CLI Commands
Command Description
wp core version check WP version
wp core download download core version
wp core update update WP version
wp core update -version=[version number] –force downgrade core version
wp user list check list of users in the site
wp user update 1 –user_pass=newPassword update user password
wp user update 1 –user_email=newEmail update user email
wp user create [displayname] [email] –role=[role] –user_password=[password] create a new user
wp user delete [ID] delete a user
wp theme status display list of themes and it’s status
wp theme list display list of themes
wp theme activate activate a theme
wp theme deactivate –all deactivate all themes
wp theme deactivate deactivate a theme
wp plugin status display list of plugins and it’s status
wp plugin list display list of plugins
wp plugin activate activate a plugin
wp plugin deactivate deactivate a plugin