WP-CLI

Updated: 12 October 2024

https://wp-cli.org/

Example commands

wp core download --version=6.1.1 --force --skip-themes --skip-plugins
wp core download --version=6.2.2 --skip-content
wp cache flush --all --allow-root
wp core download --version=6.2.2 --skip-content
wp core download --force --version=6.2.2 --skip-content
wp option get home

Scaffold a plugin

wp scaffold plugin citypay-capture \
--plugin_name="CityPay Capture" \
--plugin_description="TODO: add description." \
--plugin_author="Chris Taylor Developer" \
--plugin_author_uri=https://christaylordeveloper.co.uk \
--plugin_uri=https://christaylordeveloper.co.uk