@wordpress/create-block [slug]
Generates PHP, JS and CSS code for registering a WordPress plugin with blocks
Arguments
Name | Description |
---|
slug | The block slug used for identification, output location, and plugin name |
Options
Name | Description |
---|
-V, --version | Output the version number |
-t, --template <name> | Project template type name |
--namespace <value> | Internal namespace for the block name |
--title <value> | Display title for the block and the WordPress plugin |
--short-description <value> | Short description for the block and the WordPress plugin |
--category <name> | Category name for the block |
--wp-scripts | Enable integration with `@wordpress/scripts` package |
--no-wp-scripts | Disable integration with `@wordpress/scripts` package |
--wp-env | Enable integration with `@wordpress/env` package |
--no-plugin | Scaffold only block files |
--variant <variant> | The variant of the template to use |
-h, --help | Display help for command |