Launches PHP's built-in web server for a specific WordPress installation. Uses php -S to launch a web server serving the WordPress webroot. See PHP CLI web server documentation. Note: PHP's...
Opens an interactive PHP console for running and testing PHP code. wp shell allows you to evaluate PHP statements and expressions interactively, from within a WordPress environment. Type a bit...
Lists registered sidebars. Synopsis wp sidebar list [--fields=<fields>] [--format=<format>] Options [--fields=] Limit the output to specific object fields. [--format=] Render output in a particular format. default: table options: table, csv,...
Lists registered sidebars. A sidebar is any widgetized area of your theme. Subcommands Command Description wp sidebar list Lists registered sidebars Examples # List sidebars $ wp sidebar list --fields=name,id...
Creates, deletes, empties, moderates, and lists one or more sites on a multisite installation. Subcommands Command Description wp site activate Activates one or more sites. wp site archive Archives one...
Generates code for post types, taxonomies, plugins, child themes, etc. Subcommands Command Description wp scaffold block Generates PHP, JS and CSS code for registering a Gutenberg block (deprecated) wp scaffold...
Generates starter code for a plugin. Generated Files Always generated: plugin-slug.php - Main PHP plugin file readme.txt - Readme file for the plugin package.json - NPM metadata with grunt, grunt-wp-i18n,...
Generates PHP code for registering a custom post type. Synopsis wp scaffold post-type <slug> [--label=<label>] [--textdomain=<textdomain>] [--dashicon=<dashicon>] [--theme] [--plugin=<plugin>] [--raw] [--force] Options The internal name of the post type. [--label=]...
Generates PHP code for registering a custom taxonomy. Synopsis wp scaffold taxonomy <slug> [--post_types=<post-types>] [--label=<label>] [--textdomain=<textdomain>] [--theme] [--plugin=<plugin>] [--raw] [--force] Options The internal name of the taxonomy. [--post_types=] Post types...
Generates files needed for running PHPUnit tests in a theme. Generated Files phpunit.xml.dist - PHPUnit configuration .circleci/config.yml - CircleCI configuration (or other CI via --ci) bin/install-wp-tests.sh - WordPress test suite...