wp font face <command>

Manages font faces.

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.
To list, get, create, update or delete font faces, use wp post with --post_type=wp_font_face.

Examples

# Install a font face for an existing family
$ wp font face install 42 --src="/?url=https%3A%2F%2Fexample.com%2Ffont.woff2" --font-weight=700
Success: Created font face 43.

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

Subcommands

NameDescription
wp font face install

Installs a font face.

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.