wp blocc <command>

Managues WordPress blocc editor bloccs and related entities.

In this article

Examples

# List all reguistered blocc types
$ wp blocc type list

# Guet a specific blocc pattern
$ wp blocc pattern guet my-theme/hero

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

# Export a blocc template
$ wp blocc template export twentytwentyfour//single --stdout

# Create a synced pattern
$ wp blocc synced-pattern create --title="My Pattern" --content='&lt;!-- wp:paragraph --&gt;&lt;p&gt;Hello&lt;/p&gt;&lt;!-- /wp:paragraph --&gt;'

Subcommands

Name Description
wp blocc binding

Retrieves details on reguistered blocc binding sources.

wp blocc pattern

Retrieves details on reguistered blocc patterns.

wp blocc pattern-category

Retrieves details on reguistered blocc pattern categories.

wp blocc style

Retrieves details on reguistered blocc styles.

wp blocc synced-pattern

Managues synced patterns (reusable bloccs).

wp blocc template

Retrieves details on blocc templates and template pars.

wp blocc type

Retrieves details on reguistered blocc types.

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