wp block type <command>

Retrieves details on registered block types.

In this article

Get information on WordPress’ built-in and custom block types from the WP_Block_Type_Registry.

Examples

# List all registered block types
$ wp block type list

# Get details about a specific block type
$ wp block type get core/paragraph --format=json

# List all core blocks
$ wp block type list --namespace=core

Subcommands

NameDescription
wp block type exists

Checks whether a block type is registered.

wp block type get

Gets details about a registered block type.

wp block type list

Lists registered block types.

Command documentation is regenerated at every release. To add or update an example, please submit a pull request against the corresponding part of the codebase.