mirror of
https://ghproxy.net/https://github.com/wp-cli/handbook.git
synced 2026-07-26 12:37:22 +08:00
22 lines
598 B
Markdown
22 lines
598 B
Markdown
# wp block
|
|
|
|
Manages WordPress block editor blocks and related entities.
|
|
|
|
### 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='<!-- wp:paragraph --><p>Hello</p><!-- /wp:paragraph -->'
|
|
|
|
|