WP-CLI Status
Use the free GetWebP WP-CLI status command to inspect settings, library stats, and recent runs.
WP-CLI Status
The free WordPress plugin registers a slim wp getwebp status command. It reports current settings, library stats, saved bytes, and recent run summary.
It does not start browser-side optimization from the command line. Optimization still runs from the WordPress admin screen in the administrator's browser.
Requirements#
- WP-CLI available in the WordPress environment
- GetWebP installed and activated
- PHP 7.4+
Command#
wp getwebp statusExample output:
GetWebP
Version: 0.11.0
Preset: balanced
WebP: enabled
AVIF: disabled
Delivery: standard
Library: 120 total / 45 optimized / 75 pending
Saved: 12345678 bytes
Recent runs: 3
Latest run: 20 files / 0 failures / saved 3456789 bytesMultisite#
Use normal WP-CLI site targeting:
wp getwebp status --url=https://subsite.example.comEach site reports its own settings, history, and stats.