wp block style <command>

Retrieves details on registered block styles.

In this article

Get information on block style variations from the WP_Block_Styles_Registry.

Examples

# List all registered block styles
$ wp block style list

# List styles for a specific block
$ wp block style list --block=core/button

# Get details about a specific style
$ wp block style get core/button outline

Subcommands

NameDescription
wp block style get

Gets details about a registered block style.

wp block style list

Lists registered block styles.

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.