Category: wp-cli
-
Reset WordPress database
Sometimes while developing you may wish to completely reset your WordPress install. This will delete all the tables in your database and recreate them with the default WordPress schema. So make sure to back up any important data before executing this command. To reset your WordPress database using WP-CLI, simply open your CLI and navigate…
-
Manually Extract a Single Site from a WordPress Multisite using wp-cli
How to extract a stand-alone WordPress website from an existing multisite installation. The process here uses wp-cli. But one could achieve the same results using and db import/export tool such as phpmyadmin or https://github.com/10up/MU-Migration. If you need any help moving sites into or out of a multisite, let me know! Create new stand alone website…
-
Allow Root from wp-cli 2.5
export WP_CLI_ALLOW_ROOT=true
-
Migrate a WordPress Website with UpdraftPlus for Free (without Migrator or UpdraftClone)
How to Move a WordPress Site to a New Host We often need to move a WordPress website to a new server or set up locally. I will usually use Wordmove and SSH to do this. But sometimes the client does not have SSH access to the server. In this case I will usually use…
-
Search and Replace with wp-cli
wp search-replace oldsite.com newsite.com
-
Regenerate image sizes in WordPress
Regenerate your site’s images.
-
Delete image sizes from WordPress
Easily delete images sizes from the command line.This is permanent!
-
Creating a new WordPress user from the command line with wp-cli
It may be simpler to update an existing user. e.g.
-
Change post type
-
Optimize WordPress images
Easily optimize images using wp-cli, https://github.com/TypistTech/image-optimize-command
-
wp import backup.sql.gz
Import a gzip compressed database
-
Settings up a new WordPress install with wp-cli
List of often used wp-cli commands