Main Topics

  • Regenerating WordPress Thumbnails with WP-CLI

    When uploading images to the media library, WordPress will automatically generate several thumbnails so that a more optimized image size can be used. Since different themes and plugins will often use different sizes, you might need to periodically regenerate your those resized images. In this art...

  • Activating WordPress Maintenance Mode with WP-CLI

    When making large changes to your WordPress site, you might find the need to enable maintenance mode. In this article, we'll show you how to enable or disable maintenance mode with WP-CLI. Activating Maintenance Mode To activate maintenance mode on your site, navigate to the root directory of you...

  • Managing WordPress Language Packs with WP-CLI

    Do you need to use a different language on your WordPress site? Rather than manually downloading, installing, and activating your language packs, you can easily do it all with WP-CLI! In this article, we'll show you how. Quick Links Managing WordPress Core Language Packs Managing WordPress Plugi...

  • Importing WordPress Content with WP-CLI

    Rather than using the WordPress admin to import a WXR file, you might find it helpful to use WP-CLI instead. By importing with WP-CLI instead of the WordPress admin, you'll also have additional options available to you, such as skipping certain types of data. Importing WordPress WXR (.xml) Files ...

  • Generating WordPress Theme/Plugin Translation Files with WP-CLI

    Generally speaking, task runners like Gulp or Grunt are best for generating translation files on a continuous basis, but what if you need to just generate a quick translation file once? You can easily do so with WP-CLI. Generating POT Translation Files To generate a POT translation file for your ...

  • Exporting WordPress Content with WP-CLI

    When migrating your content from one location to another, creating backups, or making mass changes to existing content, you might find the need to export your site's content. While you can always do this from within your WordPress admin, it'll save you a few clicks to do it from within WP-CLI ins...

  • Managing the WordPress oEmbed Cache with WP-CLI

    If you've made changes to your oEmbed providers or handlers, you might need to refresh your oEmbed cache to reflect the new changes. This scenario may also apply if an oEmbed provider has changed things around on their end. In this article, we'll show you how to use WP-CLI to manage your WordPres...

  • Managing WordPress Cron Events with WP-CLI

    If you need to make changes to scheduled events within your WordPress site, WP-CLI is a great tool to have. In this article, we'll show you how to run, create, and delete events within the WordPress cron, using WP-CLI. Displaying All Cron Events To display a list of all cron events currently sche...

  • Testing the WordPress Cron with WP-CLI

    If you're having trouble with scheduled tasks within WordPress, you might have an issue with your cron configuration. Here's how to test to ensure that the WordPress cron system is working properly, using WP-CLI. Simply use the following command from inside your WordPress site's root directory: w...

  • Modifying Your WordPress Configuration File with WP-CLI

    Changing various settings within your wp-config.php file can be done easily with command line text editors like Vim or Nano, but did you know that you can make changes with WP-CLI too? Here's how to do it. Generating a New Configuration File Doing a new installation and need to generate a new wp-...

  • Managing WordPress Comments with WP-CLI

    WordPress makes managing comments easy to do when logged into the WordPress admin, but what if you want to manage your comments using a command line interface? In this article, we'll show you how to manage comments within your WordPress site using WP-CLI. Showing All Comments Using WP-CLI, you ca...

  • Changing WordPress User Role Permissions with WP-CLI

    WordPress includes several user roles with sensible permissions that cater to most sites, but what if you need to modify a role to add or remove capabilities? You can easily modify a role's permissions using WP-CLI. For a list of all WordPress roles and capabilities, see the Roles and Capabilitie...

  • Using WP-CLI Command Line Tools

    All VPS and Enterprise plans come with a powerful command line tool known as WP-CLI. For an overview of basic commands, open terminal and enter the following. Accessing WP-CLI Since WP-CLI is installed by default on all VPS/Enterprise accounts, using it is easy. Here's how to do it: Connect to y...

  • WP-CLI Database Commands

    WP-CLI has some powerful tools built in for database management, here are some of the most used/convenient features. (If you haven't done so please view Using WP-CLI Command Line Tools first) Note: Please use caution when performing commands on the database and always make sure to take a backup f...

  • WordPress Multisite Database Commands

    WP-CLI also has powerful commands for working within WordPress Multisite. Here are a few that are helpful for working within the database. Note: These commands are for subfolder multisite only. If you are using multiple domains in your sub sites please contact support. One thing to note when work...