wp-cli/scaffold-command
WP-CLI scaffold-command generates boilerplate code for WordPress: plugins, themes (including _s/Underscores), child themes, blocks, post types, and taxonomies. Create ready-to-customize files fast, with options like activation, network enablement, and overwriting.
readme.txt).wp scaffold as part of client onboarding.Adopt this package if:
functions.php, register_post_type(), or plugin headers).--enable-network for themes/plugins).Look elsewhere if:
@wordpress/create-block instead).create-react-app or Vite).make:controller or similar)."This package lets us ship WordPress features 10x faster by automating the tedious setup work—like creating plugins, themes, or custom post types—with a single CLI command. For example:
"This is a batteries-included scaffolding tool for WordPress that handles:
plugin-slug.php, readme.txt, PHPUnit tests, CI configs (CircleCI/GitHub Actions), and i18n tooling—all in one command.register_post_type()/register_taxonomy() with labels, dashicons, and localization.@wordpress/create-block, but still useful for PHP-based blocks.)Why this over alternatives?
--ci=github, --woocommerce) or fork the package.wp package install wp-cli/scaffold-command).Proposed adoption:
wp scaffold plugin/_s for new WordPress projects to eliminate boilerplate.yarn dlx wp scaffold plugin my-feature --ci=github) for team consistency.Risks: Minimal—it’s a stable, MIT-licensed package with 172 GitHub stars and active maintenance."*
How can I help you explore Laravel packages today?