The WPFolks app is out on iPhone and Android. Free, no ads. Download on the App Store Get it on Google Play
Skip to main content
Login Join
Snippet · Bash / Shell

Check WordPress and Server Info Using WP-CLI

Shared by Jainil Nagar · October 7, 2026

7 views
Back to Snippets

The first command to run when you SSH into an unfamiliar WordPress site.

# Full WordPress and server environment info
wp --info

# WordPress-specific info
wp core version
wp core version --extra

# Check if WordPress needs an update
wp core check-update

# PHP version and key settings
wp eval 'echo PHP_VERSION . "n";'
wp eval 'echo ini_get("memory_limit") . "n";'
wp eval 'echo ini_get("max_execution_time") . "sn";'
wp eval 'echo ini_get("upload_max_filesize") . "n";'

# Active plugin count and list
wp plugin list --status=active --format=count
wp plugin list --status=active --fields=name,version --format=table

Tested on

WordPress 7.1

Reported by the author on October 7, 2026. WPFolks has not verified this.

Know a different way to do this? Add your approach as a variation so folks can compare them side by side.
Submit a variation

1 comment

  1. Amit Dholiya
    Amit Dholiya @amitdholiya

    This is a great checklist for quickly getting oriented on an unfamiliar WordPress site over SSH: WP-CLI info, core version and updates, PHP limits, and active plugins in one go.

    Report