Using WP-CLI bash Scripting to Find WP-CLI Plugin Conflicts or Errors

WP-CLI is invaluable to me so when it doesn’t work on a WooCommerce or WordPress site it’s a top priority to get it fixed and working properly! I was getting this weird error for a site where WP-CLI wouldn’t show me any information, simple commands like wp option get weren’t returning any output and simply … Learn more…

Autoupdate WP-CLI and packages with Linux Cronjob

WP-CLI is adding more useful functionality every day to help sysadmins and hosts make WordPress management a breeze. I have found myself having to update WP-CLI manually over SSH for all of my sites which is pretty monotonous. This tutorial will show you how to autoupdate WP-CLI and its packages with a Linux cronjob on … Learn more…

Using WP-CLI doctor Command to Fix Large wp_options autoload Data

Two of my favorite WP-CLI commands are awesome profile and doctor (see my profile tutorial) which help WordPress site administrators keep site secure, clean and fast! The WordPress database has a table called wp_options which is used to store core, theme and plugin settings. Some of these settings are very essential to each component and must … Learn more…

Using WP-CLI to Backup and Restore WordPress Widgets

If you have ever lost your WordPress widgets after changing or updating your theme, this guide will help you solve that problem for the future! I will show you how to back up the WordPress widgets  (header, footer, sidebar, inactive and active) with WP-CLI so you can easily restore your widgets at any time. This … Learn more…

Using WP-CLI to Batch Autodelete Inactive WordPress Plugins

Keeping a clean and secure WordPress site is best practice. This means the database doesn’t have unnecessary bloat and all plugins are useful and up-to-date. A clean WordPress site is essential for making troubleshooting easy in case things ever go pear-shaped. Inactive plugins that are outdated and have security vulnerabilities are still dangerous for your … Learn more…