WP-CLI is a tool that allows you to manage the WordPress web sites from the command line. You can do most of the regular admin actions with WP-CLI.
Clearing All Cache
You use the following command line to remove all cache files from a site.
$ wp fastest-cache clear all