@wordpress/create-block [slug]

Generates PHP, JS and CSS code for registering a WordPress plugin with blocks

Arguments

NameDescription
slugThe block slug used for identification, output location, and plugin name

Options

NameDescription
-V, --versionOutput 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-scriptsEnable integration with `@wordpress/scripts` package
--no-wp-scriptsDisable integration with `@wordpress/scripts` package
--wp-envEnable integration with `@wordpress/env` package
--no-pluginScaffold only block files
--variant <variant>The variant of the template to use
-h, --helpDisplay help for command