Skip to main content

FlyingPress WP-CLI Commands

Updated this week

FlyingPress supports several WP-CLI commands to help you automate common cache and license tasks from the command line. These are useful for deployments, scripting, or server-side workflows.

Requirements

  • WP-CLI must be installed on your server

  • FlyingPress must be active

Run commands from your WordPress root directory.

Available Commands

Preload cache

wp flying-press preload-cache

Starts the full cache preloading process based on your current preload settings.

Purge all HTML pages

wp flying-press purge-pages

Clears all HTML cached pages but keeps other cached assets.

Purge everything

wp flying-press purge-everything

Deletes the entire cache folder, including all HTML and static files.

Activate license

wp flying-press activate-license LICENSE-KEY

Replaces the existing license key with a new one and activates it.

Notes

  • Use these commands in cron jobs or deployment scripts for automation

  • Preload and purge operations are non-blocking and safe to run repeatedly

  • License activation requires a valid license key

Did this answer your question?