Generate Blocks with WP-CLI Edit


Deprecated: It is no longer recommended to use WP-CLI or create-guten-block to generate block scaffolding.

The official script to generate a block is the new @wordpress/create-block package. This package follows the new block directory guidelines, and creates the proper block, environment, and standards set by the project. See the new Create a Block tutorial for a complete walk-through.