wp block template <command>

Retrieves details on block templates and template parts.

In this article

Get information on block templates used in Full Site Editing (FSE) themes.

Examples

# List all templates
$ wp block template list

# List template parts for the header area
$ wp block template list --type=wp_template_part --area=header

# Get a specific template
$ wp block template get twentytwentyfour//single

Subcommands

NameDescription
wp block template export

Exports a block template to a file.

wp block template get

Gets details about a block template.

wp block template list

Lists block templates or template parts.

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.