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.
Font collections are predefined sets of fonts that can be used in WordPress. Collections are registered by WordPress core or themes and cannot be created or deleted via the command line.
Examples
# List all font collections
$ wp font collection list
+------------------+-------------------+---------+
| slug | name | count |
+------------------+-------------------+---------+
| google-fonts | Google Fonts | 1500 |
+------------------+-------------------+---------+
# Get details about a specific font collection
$ wp font collection get google-fonts
+-------+------------------+
| Field | Value |
+-------+------------------+
| slug | google-fonts |
| name | Google Fonts |
+-------+------------------+
Subcommands
| Name | Description |
|---|---|
| wp font collection get | Gets details about a registered font collection. |
| wp font collection is-registered | Checks if a font collection is registered. |
| wp font collection list | Lists registered font collections. |
| wp font collection list-categories | Lists categories in a collection. |
| wp font collection list-families | Lists font families in a collection. |