wp font <command>

Manages WordPress fonts.

In this article

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.

Examples

# List all font collections
$ wp font collection list

# Install a font family from a collection
$ wp font family install google-fonts inter

# List installed font families
$ wp post list --post_type=wp_font_family

# List installed font faces
$ wp post list --post_type=wp_font_face

Subcommands

NameDescription
wp font collection

Manages font collections.

wp font face

Manages font faces.

wp font family

Manages font families.

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.