WP-CLI

Update all plugins

wp plugin update --all

Update WordPress DB

wp core update-db

Update WordPress

wp core update

Optimize db

wp db optimize

Change WordPress post author

wp post update 6 --post_author=1

List WordPress users

wp db query ​"SELECT user_login, ID FROM wp_users;"

Create posts

wp post create
--post_status=publish
--post_title=​"Second Post"
--edit

Post update

wp post update 1
--post_title=​"Your New title..."

Edit post

wp post edit 1

List posts

wp post list

Activate theme

wp theme activate bootstrap-four

Install theme

wp theme install bootstrap-four

Search for new themes

wp theme search keyword

List installed themes

wp theme list

List plugins

wp plugin list

Install plugin

wp plugin install pluginname

Search plugin

wp plugin search yoast

Install WordPress

wp core install --url=​"your_domain_name"
--title=​"Your Blog Title"​ --admin_user=​"admin"
--admin_password=​"your_password"
--admin_email=​"your_email"

Generate wp-config.php file

wp core config --dbname=<dbname>
--dbuser=<dbuser> --dbpass=<dbpass>
--dbprefix=<dbprefix>

Download WordPress

wp core download
Comments