wp cli cache <command>

Manages the internal WP-CLI cache,.


# Remove all cached files.
$ wp cli cache clear
Success: Cache cleared.

# Remove all cached files except for the newest version of each one.
$ wp cli cache prune
Success: Cache pruned.

Top ↑


Name Description
wp cli cache clear

Clears the internal cache.

wp cli cache prune

Prunes the internal cache.

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.