18 WordPress CLI Commands That Every WordPress Developer Must Know

Posted by TotalDC

WordPress CLI is a tool that gives you ability to admin your WordPress website through a command line. You can execute standard functions like plugin installation or commands that are not supported through the standard WP backend. You can find a WordPress CLI cheat sheet with a list of useful WordPress CLI commands below.

WordPress Commands That Every WordPress Developer Must Know
Download WordPresswp plugin search yoast
Generate wp-config.php filewp core config –dbname=<dbname> –dbuser=<dbuser> –dbpass=<dbpass> –dbprefix=<dbprefix>
Install WordPresswp core install –url=”your domain name” –title=”your blog title” –admin_user=”admin” –admin_password=”your password” –admin_email =”your email”
Search pluginwp plugin search yoast
Install pluginwp plugin install pluginname
List pluginswp plugin list
List installed themeswp theme list
Search for new themeswp theme search keyword
Install themewp theme install theme name
Activate themewp theme install theme name
Edit postwp post edit 1
Post updatewp post update 1 –post_title=”your post title”
Create postswp post create –post status=publish –post_title=”your post title” –edit
Login WordPress dbwp db cli
List WordPress userswp post update 6 –post_author=1
Optimize dbwp db optimize
Update WordPresswp core update-db
Update all pluginswp plugin update –all

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: