Title: wp block
Published: January 7, 2026
Last modified: April 13, 2026

---

# 󠀁[wp block <command>](https://developer.wordpress.org/cli/commands/block/)󠁿

Manages WordPress block editor blocks and related entities.

## In this article

 * [Examples](https://developer.wordpress.org/cli/commands/block/?output_format=md#examples)
 * [Subcommands](https://developer.wordpress.org/cli/commands/block/?output_format=md#subcommands)

[ Back to top](https://developer.wordpress.org/cli/commands/block/?output_format=md#wp--skip-link--target)

 [ ⌊GitHub⌉ ](https://github.com/wp-cli/block-command)

 [ View Open Issues (1) ](https://github.com/login?return_to=%2Fissues%3Fq%3Dlabel%3Acommand%3Ablock+sort%3Aupdated-desc+org%3Awp-cli+is%3Aopen)
[ View Closed Issues (2) ](https://github.com/login?return_to=%2Fissues%3Fq%3Dlabel%3Acommand%3Ablock+sort%3Aupdated-desc+org%3Awp-cli+is%3Aclosed)
[Create New Issue](https://github.com/wp-cli/block-command/issues/new)

### 󠀁[Examples](https://developer.wordpress.org/cli/commands/block/?output_format=md#examples)󠁿

    ```
    # List all registered block types
    $ wp block type list

    # Get a specific block pattern
    $ wp block pattern get my-theme/hero

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

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

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

### 󠀁[Subcommands](https://developer.wordpress.org/cli/commands/block/?output_format=md#subcommands)󠁿

| Name | Description | 
| [wp block binding](https://developer.wordpress.org/cli/commands/block/binding/) |

Retrieves details on registered block binding sources.

  | 
| [wp block pattern](https://developer.wordpress.org/cli/commands/block/pattern/) |

Retrieves details on registered block patterns.

  | 
| [wp block pattern-category](https://developer.wordpress.org/cli/commands/block/pattern-category/) |

Retrieves details on registered block pattern categories.

  | 
| [wp block style](https://developer.wordpress.org/cli/commands/block/style/) |

Retrieves details on registered block styles.

  | 
| [wp block synced-pattern](https://developer.wordpress.org/cli/commands/block/synced-pattern/) |

Manages synced patterns (reusable blocks).

  | 
| [wp block template](https://developer.wordpress.org/cli/commands/block/template/) |

Retrieves details on block templates and template parts.

  | 
| [wp block type](https://developer.wordpress.org/cli/commands/block/type/) |

Retrieves details on 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._