wp icon collection <command>

Manages icon collections.

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.
Icon collections group registered SVG icons by source, and act as the namespace of the icons belonging to them. WordPress core registers the core collection, while themes and plugins register their own with wp_register_icon_collection(). Because collections only exist for the duration of a request, they cannot be created or deleted from the command line.

Examples

# List all icon collections
$ wp icon collection list
+------+-----------+--------------------------+-------+
| slug | label     | description              | count |
+------+-----------+--------------------------+-------+
| core | WordPress | Default icon collection. | 88    |
+------+-----------+--------------------------+-------+

# List the icons of a collection
$ wp icon list --collection=core

Subcommands

NameDescription
wp icon collection get

Gets details about a registered icon collection.

wp icon collection is-registered

Checks if an icon collection is registered.

wp icon collection list

Lists registered icon collections.

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.