Must-Know WP-CLI Commands for WordPress Management

10 Must-Know WP-CLI Commands for WordPress Management

  • May 5, 2023

1. Lists all installed plugins

wp plugin list

2. Installs a plugin

wp plugin install

3. Activates a plugin

wp plugin activate

4. Deactivates a plugin

wp plugin deactivate

5. Deletes a plugin

wp plugin delete

6. Lists all installed themes

wp theme list

7. Installs a theme

wp theme install

8. Activates a theme

wp theme activate

9. Deletes a theme

wp theme delete

10. Lists all registered users

wp user list

11. Download core WordPress files

wp core download

12. Export WordPress database

wp db export ~/wpdump.sql

13. Install WDordPress

wp install --url=<site-url> -D-title=<site-title> --admin_user=<admin-username> --admin_password=<admin-password> --admin_email=<admin-email>

14. Replace in database

wp search-replace 'https://xyz.com' 'https://abc.com' --skip-columns=guid

15. Check WP CLI version

wp cli version

Related Post

bb-theme-wordpress

BB Theme WordPress: A Comprehensive Review and Guide

Welcome to the world of BB Theme WordPress Are you searching for the perfect WordPress theme to bring your website to life? Look no further! BB WordPress Theme is here to help you design a […]

How-To-Delete-A-WordPress

How to Delete a Theme in WordPress: A Step-by-Step Guide

Easy Ways to Delete Any Theme in WordPress Do you want to remove a WordPress theme and are looking for guidance on how to do it? Removing a theme can help declutter your site and […]

Salient-WP

Salient WordPress Theme: A Comprehensive Guide for Beginners

If you’re looking for a WordPress theme that combines versatility, functionality, and style, the salient wordpress theme is worth considering. salient wordpress theme is a multi-purpose WordPress theme that caters to various niches, including business, […]