How to clear WordPress caches and fix permalinks with WP-CLI Clear WordPress caches and rebuild permalinks from the command line using WP-CLI, for example when changes aren't showing or pages return a 404 error.