Skip to content

WP-CLI Access

WPGrip uses WP-CLI as its primary interface with your WordPress sites. All data syncing, plugin detection, and configuration reading happens via WP-CLI commands over SSH.

What WPGrip Uses WP-CLI For

OperationWP-CLI Command
Get WordPress versionwp core version
List pluginswp plugin list --format=json
List themeswp theme list --format=json
Get site URLwp option get siteurl
Check databasewp db check
Export databasewp db export

Requirements

WP-CLI must be:

  1. Installed on the server
  2. In the PATH of the SSH user
  3. Version 2.0+ (recommended: latest)

Installing WP-CLI

bash
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
php wp-cli.phar --info  # verify it works
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp

Verifying Installation

bash
wp --version
# WP-CLI 2.10.0

Permissions

The SSH user that WPGrip connects as must have:

  • Read access to the WordPress installation directory
  • Execute permission for WP-CLI
  • Read access to wp-config.php (for database operations)
  • Write access to the WordPress directory (only if using backup restore features)

TIP

For maximum security, create a dedicated wpgrip user with read-only access to the WordPress directory. Grant write access only if you need backup restore or deployment features.

All your WordPress sites. One powerful control panel.