I am trying to loop through all sites on a multisite network, and for each site, delete all subscriber users. I have tried this WP-CLI command: wp site list...
I’m using the WP CLI command wp media regenerate to resize all of the images via the /wp-content/uploads directory. Are the new image dimensions registered in the database in...
Closed. This question is off-topic. It is not currently accepting answers. Your question should be specific to WordPress. Generic PHP/JS/HTML/CSS questions might be better asked at Stack Overflow or...
I’m using wp cli to import the same featured image for around 2,000 posts. I did a couple tests to see if the image would be duplicated or if...
I am using WP-CLI shell to quickly debug some code, but every time I run into a fatal exception (e.g. undefined constants/functions) the shell exits and I lose my...
How create post using WP-CLI at time of network site create. I am creating network sites using WP-CLI. I have tried: wp post create --post_type=page --post_title="ABC" --post_status=publish --network But...
You can create a plugin using the wp scaffold plugin PLUGINNAME command. It creates a bunch of files, including .distignore, .editorconfig, .gitignore, .travis.yml. Here is the contents of .distignore:...
I’m hosting a wp site on my own server (at home) and I would like to use wp cli to import media from my own computer. On my computer,...
LEMP stack on digitalocean VPS. I haven’t been able to get “wp core update” to work unless public (or “Other”) has execute permission, i.e. 757 or 777. Otherwise, it...
So I can cache a WordPress installation with: wp core download --version=4.5 --path=/tmp/wp45 Subsequent requests of version 4.5 will be pulled from wp-cli local cache. I think that: wp...