wp block pattern-category <command>

Retrieves details on registered block pattern categories.

In this article

Note: This command is not part of a stable WP-CLI release yet. To use it now, switch to the nightly build with wp cli update --nightly. If you installed the command as a separate package, updating that package may be enough.
Get information on block pattern categories from the WP_Block_Pattern_Categories_Registry.

Examples

# List all registered pattern categories
$ wp block pattern-category list

# Get details about a specific category
$ wp block pattern-category get featured --format=json

Subcommands

NameDescription
wp block pattern-category get

Gets details about a registered block pattern category.

wp block pattern-category list

Lists registered block pattern categories.

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.