Note: This command is not part of a stable WP-CLI release yet. To use it now, switch to the nightly build with wp cli update --nightly. If you installed the command as a separate package, updating that package may be enough.
Synced patterns are stored as the ‘wp_block’ post type and can be either synced (changes reflect everywhere) or not synced (regular patterns).
Examples
# List all synced patterns
$ wp block synced-pattern list
# Create a synced pattern
$ wp block synced-pattern create --title="My Pattern" --content='<!-- wp:paragraph --><p>Hello</p><!-- /wp:paragraph -->'
# Delete a synced pattern
$ wp block synced-pattern delete 123
Subcommands
| Name | Description |
|---|---|
| wp block synced-pattern create | Creates a synced pattern. |
| wp block synced-pattern delete | Deletes one or more synced patterns. |
| wp block synced-pattern get | Gets details about a synced pattern. |
| wp block synced-pattern list | Lists synced patterns. |
| wp block synced-pattern update | Updates a synced pattern. |