Skip to main content

List of Commands and Tools

List of Seravo CLI commands and tools for WordPress management. Covers administration, database operations, performance testing, and local Docker development environment helpers.

Updated this week

Seravo's environment provides a robust set of CLI tools to streamline WordPress development and maintenance. These commands are available in the production SSH environment and within the local Docker development container.

For detailed information on any command, run command --help.

Administration, Security & Diagnostics

Tools for monitoring site health, auditing security, and general maintenance.

Command

Description

wp-status

Comprehensive overview of the WordPress installation and server environment.

wp-purge-cache

Purges all server-level caches: Nginx proxy, Object cache, and Redis.

wp-update-object-cache

Update/install object-cache.php dropin.

wp-check-https / wp-test-https

In-depth report and testing of the site's HTTPS/SSL configuration.

wp-check-http-cache

Verifies if the Nginx HTTP cache is functioning correctly.

wp-check-http-cache-stats

Provides detailed statistics on HTTP cache performance and hit rates.

wp-check-passwords

Audits the strength of all WordPress user passwords.

wp-check-haveibeenpwned

Checks if user passwords appear in known data leak databases.

wp-check-loginurl

Show's the WordPress login URL.

wp-check-remote-failure

Tests how the site behaves if remote connections are blocked.

wp-last-ssh-logins

Lists recent successful and failed SSH login attempts.

wp-last-wp-logins

Shows a summary of successful and failed WordPress dashboard logins.

wp-reset-all-passwords

Resets passwords and sessions for all WordPress users.

wp-reset-all-sessions

Forces all users to log out by clearing all active sessions.

wp-reset-ssh-password

The official command to reset your site's SSH password.

wp-theme-security-check

Runs a security audit on the active WordPress theme using phpcs.

wp-seravo-plugin-update

Updates the must-use Seravo Plugin to the latest version.

wp-cli

Access to the standard WordPress CLI with Seravo-specific enhancements.

Code, Fixes & Optimization

Tools for maintaining code quality, fixing common issues, and optimizing assets.

Command

Description

wp-fix-checksums

Verifies and fixes WordPress core files against official checksums.

wp-fix-project

Syncs your project structure with the latest Seravo upstream template.

wp-fix-languages

Fixes missing or broken WordPress language packs.

wp-fix-wp-content-symlink

Repairs broken or missing symlinks in the wp-content directory.

wp-fix-backups

Attempts to repair common issues in the backup metadata structure.

wp-optimize-images

Optimizes images (JPEG/PNG) and enforces resolution limits.

wp-check-php-version

Returns the current PHP version used by the site.

wp-check-php-compatibility

Checks code compatibility with specific PHP versions using phpcs.

wp-php-compatibility-check

Alias/alternative for checking PHP code compatibility.

wp-php-set-version

Command to switch the PHP version of the environment.

wp-find-code

Helper for locating specific strings or code patterns within the project.

wp-list-files-ctime

Lists files changed within the last 30 days based on change time.

wp-list-files-mtime

Lists files modified within the last 30 days based on modification time.

wp-url

Displays the primary URL of the site.

Development, Performance & Testing

Tools for monitoring, load testing, and static site generation.

Command

Description

wp-watch-logs

Real-time monitoring of all relevant logs in /data/log/.

wp-watch-php

Specifically monitors PHP-FPM and PHP error logs in real-time.

wp-speed-test

Measures the response time of WordPress PHP page loads.

wp-load-test

Simulates consecutive requests to measure site capacity.

wp-load-test-ng

Next-generation tool for advanced load testing and stress analysis.

wp-test / wp-test-ng

Runs the project's automated test suites (e.g., Codeception).

wp-test-whitelist

Adds specific messages/errors to the test runner's whitelist.

wp-static-export

Exports the WordPress site as a static HTML version.

wp-static-export-ng

Advanced next-generation static site exporter.

wp-stats

Provides various statistics about the site and its environment.

wp-action-scheduler

Moves the WordPress Action Scheduler to system cron.

wp-reload-nginx

Reloads Nginx to apply changes without downtime.

wp-restart-nginx

Restarts the Nginx service.

wp-restart-php

Restarts all PHP-FPM worker processes.

wp-restart-db

Restarts database connections and kills hanging queries.

wp-list-env

Displays all defined environment variables.

wp-pomo-compile

Compiles .po files into binary .mo files for translations.

wp-makepot

Wrapper for generating translation template (POT) files.

wp-git-status

Summary of the Git repository state in /data/wordpress.

Database & Environments

Commands for database operations and staging (shadow) management.

Command

Description

wp-db-cli

Access the MariaDB console interface.

wp-db-dump

Dumps the site's database into /data/db/.

wp-db-load

Replaces the current database with a dump from /data/db/.

wp-db-size

Displays database size categorized by tables.

wp-db-info

Displays table sizes and wp_options record lengths.

wp-db-optimize

Runs CHECK and OPTIMIZE tasks for all database tables.

wp-db-cleanup

Removes old post revisions from the database. (Destructive)

wp-db-update

Applies any pending WordPress database schema updates.

wp-db-admin

Access the MariaDB Proxy admin console.

wp-shadow-pull

Replaces production data with data from a shadow environment. (Caution)

wp-shadow-reset

Resets a shadow environment with fresh data from production.

wp-network-status

Shows the status of a WordPress Network (Multisite) installation.

Backups

Tools for interacting with the rdiff-backup system.

Command

Description

wp-backup

Manually triggers a full backup of the site's database and files.

wp-backup-status

Lists all available backup increments and their dates.

wp-backup-list-changes

Lists all files changed in the system according to backups.

wp-backup-list-changes-since

Lists changes made since a specific date.

wp-backup-restore

Facilitates the restoration of files from a chosen backup point.

Local Development (Docker specific)

The following tools are primarily used in the local environment to sync with production.

Command

Description

wp-development-up

Initializes the local environment and pulls production data.

wp-activate-asset-proxy

Configures the environment to load images from the production URL.

wp-use-asset-proxy

Toggles the asset proxy functionality.

wp-development-up

Initializes the local environment and pulls production data based on config.yml.

wp-pull-production-db

Copies the production database locally and performs the necessary search-replace for URLs.

wp-pull-production-core

Installs the same WordPress core version locally as is currently used in production.

wp-pull-production-plugins

Syncs the local plugins directory to match the production environment.

wp-pull-production-themes

Syncs the local themes directory to match the production environment.

wp-pull-shadow-db / wp-pull-staging-db

Copies the database from a shadow or staging environment to the local environment.

wp-activate-asset-proxy

Configures the environment to load images directly from the production URL.

wp-use-asset-proxy

Toggles the asset proxy functionality on or off.

Did this answer your question?