If the WordPress dashboard stops loading, you may still be able to check the installation using WP-CLI. To do this, you'll need authorized access to your hosting provider's shell. First, check the Installation path Check the information in the hosting panel to make sure you don't accidentally examine the wrong website. If a plugin check fails as soon as WordPress loads, the core checksum verification can still provide a result: It runs before WordPress starts and checks the core files, not the entire website.
What WP-CLI Can Do Without a Dashboard
If the WordPress dashboard only displays an error, you may still be able to examine the installation using WP-CLI. The command runs in a Shell on the hosting system, for example, after you've logged in via SSH. WP-CLI neither controls the browser nor logs you into the dashboard. Instead, it accesses the WordPress installation that has been selected for the command.
Whether a command still works when the dashboard is down depends on how much of WordPress it needs to load. For a standard plugin inventory, the installation must start up enough so that WP-CLI can retrieve the necessary information. If even this initial step fails, the terminal command may also terminate. This does not mean that the shell or WP-CLI itself is defective.
Other exams are in progress Before Launching WordPress. This includes verifying that the core files match the published checksums. It can therefore still provide a diagnosis even if a plugin query no longer runs. However, a successful comparison only indicates that the checked core files match the expected checksums. It does not indicate whether the dashboard is accessible again or whether the database is functioning properly.
Before proceeding, determine what the action is intended to do. A diagnostic provides a report; a preview shows the expected outcome of an action without actually performing it. A database export does not change the stored WordPress data, but it does write a file that requires protection. An actual update, on the other hand, can modify files and affect the live website. The fact that all four processes start in the same terminal does not mean they are equivalent in terms of operational impact.
Check Shell Access and PHP Version
First, check whether your hosting plan provides authorized SSH access or a terminal in the hosting control panel. A WordPress administrator account alone does not grant you shell access. If you have multiple websites on the same account, ask which one Website Users is intended for the desired installation. Run the commands using this account instead of switching to root if a permission error occurs.
When executing a write command as root, newly created files may belong to root. Regular website users may then be unable to edit them during the next maintenance. It is recommended that you use your host’s WP-CLI and follow the command documentation provided by them. You can use your own PHAR archive if the provider allows it and a compatible PHP version is available in the shell.
After logging in, check the tools in the same shell where you'll later run the WordPress commands. The following commands assume that the shell has the programs available under the names wp and php . You don't need to select a WordPress directory yet. If your hosting provider uses a different WP-CLI command, use their default for the first line.
The first output describes the WP-CLI environment, including the WP-CLI version and the PHP version being used. The second shows the version of the PHP program that your shell finds when you call it directly. The two may differ from one another, for example, if your hosting provider runs WP-CLI via a starter script with a different PHP version. In the event of an error, therefore, the PHP via WP-CLI, not the Web PHP version displayed in the website panel.
Keep track of the WP-CLI version separately from the WordPress version. One refers to the management tool, and the other to the installation you’re about to select. This way, if an error message appears, you’ll be able to tell whether it’s related to the availability of a command option or to the status of the WordPress files on the hosting system.
Confirm the Correct WordPress Installation
Using the hosting information, determine the absolute installation path and synchronize it with the desired environment. Staging and production can be located on the same hosting account and have similar directory names. In the following example, /srv/staging/wordpress for a fictional WordPress directory. Replace this path in both lines with the confirmed path of your installation; do not include a domain name here.
The first command shows which version of WordPress WP-CLI can detect in the specified directory. This does not yet confirm the identity of the website: a staging copy and the live site can have the same version. Even a list of plugins that appears familiar is no substitute for verifying the information against the hosting details. The list shows the plugins installed in the selected context, but this requires that WordPress start up sufficiently.
In the case of a Multisite Installation Directories and sites are two different levels. With --path select the WordPress installation. With --url For applicable commands, you specify the site context within this installation where the command should run. This does not switch to a different WordPress directory and does not automatically make a command network-wide. Before making any changes, check separately whether the specific command affects a single site or resources across the entire network.
Before running write tests, you should also verify the database mapping. Compare the database host and database name from the current staging configuration with the hosting details. A separate WordPress directory does not mean that the data is also separate. For such tests, use a dedicated staging database that is not used by production. If the mapping is unclear, clarify it with your hosting provider before making any changes.
For recurring commands, you can set up separate WP-CLI aliases for staging and production. An alias saves you from having to type the command repeatedly, but it does not verify that its name matches the specified target. When setting up the alias and after making changes to the hosting structure, check which path—and, if applicable, which host or site—the alias points to. Test it first with a read-only command.
Isolating a Dashboard Failure in the Terminal
If the dashboard fails, use the verified path for the affected installation. The staging path in the following commands is an example: If the live site is down, use its verified path for this diagnosis. A comparison with staging does not provide any information about the live site’s core files. Continue to run write-intensive tests on staging.
The Checksum Comparison compares the local core files with the checksums provided by WordPress.org. It runs before WordPress starts, so it's worth trying even if another WP-CLI command fails while loading the installation.
A discrepancy indicates that a checked file does not match the expected state. It neither explains the cause nor proves a security breach. A successful comparison, on the other hand, says nothing about uploads, plugins, or the database. If the reference checksums are not available, the check is skipped: This is neither a confirmed discrepancy nor a clear all.
If the normal plugin list fails to load at startup, repeat the command in the same shell and for the same installation using both Skip Options. They exclude regular plugins and themes from this call without permanently disabling anything. Must-use plugins continue to load. This allows you to check whether the startup succeeds under these restricted conditions.
If only this second call succeeds, it indicates a problem loading regular plugins or themes. It’s not possible to determine which extension is involved, because the call skips both groups at the same time. If both attempts fail, refer to the specific error message instead of deactivating extensions on a hunch.
| Situation | First Call for Papers | As the results show | Next step |
|---|---|---|---|
| wp not found | command -v wp | No output: The current shell does not resolve "wp". | Check the search path and the host terminal. |
| Suspected Incorrect Installation | wp –path=INSTALLATION_PATH core version | A version can be identified at this path; the site identity remains unspecified. | Replace the placeholder with the path you want to test and verify it in the panel; for multisite installations, also check the –url. |
| PHP Error on Startup | wp –info | If successful, this displays the PHP from WP-CLI, not necessarily the web PHP. | Review the list of plugins with skip options and compare the error message. |
| Dump failed | command -v mysqldump | Indicates whether the shell can find the export program, not whether the login is successful. | Analyze export errors and check database access. |
| Unexpected Migration Matches | search-replace preview with –dry-run | The output refers to the tables that were actually checked. | Synchronize the table selection and repeat the preview. |
Check Plugin Updates in Advance
If WP-CLI can start the staging installation far enough, get an overview of the available plugin updates before a maintenance window. The following shell command queries with --all lists all installed plugins and displays them via Dry run, which of these would be updated. It does not apply any updates. The output applies to the selected installation's environment, not automatically to production.
The preview is not a compatibility test. Before performing the actual update, verify that Staging uses separate WordPress files and a in-house database ... The correct file path alone does not protect production data if the staging configuration still points to the live database.
Before performing the actual update, back up the relevant data from the files and database, and determine who can restore it in case of an error. Only then should you install the planned updates on the staging environment. Keep a record of which versions you install there so that the subsequent release matches the changes that were actually tested.
After the update, test the functions that are critical to ongoing operations. For a website with a contact form, for example, simply opening the home page is not enough: Also verify that a test message can be sent and that it reaches the intended test destination. If a production-relevant connection is missing on the staging environment, explicitly note this gap in testing when approving the site.
Schedule a WordPress core update separately from the plugin updates. wp core update updates the core files; wp core update-db triggers the Core database update. Treat this as a separate process; do not assume that a successful file update means the database has been updated as well. If your hosting provider manages updates, clarify in advance which steps you are allowed to perform yourself, and do not begin production until you have received approval.
For an isolated initial test, you can use a plugin with Try WordPress Playground in Your Browser. This is helpful if you just want to familiarize yourself with a single feature or the user interface at first. However, when it comes to releasing an update, the test in the hosting staging environment is what counts: The browser test does not replicate either the server configuration or the services connected to it.
Export the Database and Prepare for the Domain Change
wp db export is a terminal command, not an SQL statement. It reads the database configuration for the selected installation and calls mysqldump . The export program must be available in the shell, and the database connection must allow the export. The following command assumes you have your own staging database, with all tables belonging to the job. Use an existing, protected directory outside the public web area as the destination—one to which your website user has write access.
The export does not change the data set, but it does create a sensitive SQL dump. Depending on the website, it may contain, for example, email addresses or confidential settings. It is not a complete website backup: uploads, plugins, themes, and configuration files are missing. If you use your host’s backups, make sure you can restore both files and the database from a compatible version.
If no tables are selected, the command exports all tables from the configured database. --path Selects the WordPress directory, but does not limit the dump to a table prefix or a single Multisite site. If multiple installations share the same database, verify the tables associated with the job before exporting and specify them using --tables as a comma-separated list.
Prepare for a domain change on an isolated staging copy: It requires separate WordPress files and its own database that the production environment does not use. Check both mappings before searching for the old address in the staging database. A different installation path alone does not make the copy independent of the live data.
In the shell, pass the old and new addresses as positional arguments in that order. The following call takes PHP-serialized values into account and omits the column guid and saves because of --dry-run No substitutions.
The Table Size This call is based on the information in $wpdb registered tables. In Multisite, these are, by default, the registered tables of the selected site. Only --network extends the search to the network's registered tables. Unregistered plugin tables are not included in the default run, nor are they included solely by --network included.
Tables without primary keys are skipped. If the preview reports no matches, this applies only to the tables and columns that were actually checked. Before running the process again, determine which additional plugin tables are included in the migration. When searching a shared database, do not extend the search to all tables indiscriminately: this may include tables from another installation.
Even a plausible list of matches does not cover the entire domain change. The preview searches the database, not files or settings of external services. Therefore, check separately to see if, for example, a configuration file still contains the old address or if a connected service continues to send requests to the old domain. Such references do not appear in the report, even if the table scope has been selected correctly.
If WordPress Doesn't Start in the Shell
Does the plugin list also fail with --skip-plugins and --skip-themes, the next clue is the specific error message. These options do not rule out all extensions as the cause: “must-use” plugins are still loaded. Therefore, if you encounter a PHP error, make a note of the first file and line mentioned, rather than disabling other components on a hunch. The line number indicates where the call is interrupted, not necessarily where the problem originated.
If the message indicates a missing PHP extension or unsupported syntax, check with wp --info First, check the version of PHP used by WP-CLI. The hosting control panel may display a different version for web requests. If, however, the command returns an error when establishing a database connection, check whether the configuration of the selected installation points to the intended database server and whether that server is accessible from the hosting environment. Do not change the login credentials solely based on a general connection error message.
An error may also occur only in the terminal. For example, if the configuration derives a setting from the HTTP hostname of the request, this value may be missing in the shell: no browser has triggered an HTTP request there. If you see a corresponding message, check whether the specified location requires such a value. Troubleshooting the shell call should not affect the selection of the correct site during web operation.
If you can't narrow down the cause any further or don't have the necessary permissions, provide the hosting support team with the target environment, the command used, the WP-CLI version, and the PHP version used by WP-CLI—if you can determine them. Include the sanitized error message and specify whether only the shell or the website is affected. Remove passwords, tokens, and other credentials from commands and output before sharing them.
Reliably Run Recurring WP-CLI Tasks
A regular Inventory is a good starting point for automation. For example, have it output the core version and the plugin list once a week. This allows you to see which versions were installed at the time the job ran and whether the list has changed since the last successful run. The job does not install any updates, nor does it check whether the website functions correctly in a browser.
Before scheduling, test not only in your SSH session but also within the context of the task scheduler. The non-interactive call should run under the same website user, use the same verified target path, and start with the same PHP environment. A task scheduler may have a different program search path or working directory than your shell. Therefore, explicitly specify the WordPress path and compare the runtime information from wp --info in both contexts.
For each run, record the time, target environment, output, error messages, and Return Status Note: If the plugin list is missing, it may mean that the command was aborted, not that no plugins are installed. Therefore, only use successful runs as a baseline and store the logs securely. This way, if an error occurs, you can check whether the WP-CLI task scheduler started at all or if the command failed while the installation was loading.
Separate read-only jobs from tasks that modify files or database content. A logged list of available updates should not inadvertently trigger an automatic update run. For changes, you need a separate process with clearly defined responsibilities and a recovery plan. The post on Plesk Event Handlers for Hosting Automation It also shows how tasks can be linked to events in the hosting panel. Such handlers are not required for WP-CLI.
When to Take Over the Hosting Panel or Support
Use WP-CLI if you want to repeatedly query a database on a verified installation or pinpoint the cause of an error. You can record a list of versions or the results of a core check and compare them later with another run. What matters is what the command actually checks: A successful terminal command does not indicate that editors can log in or that a page displays correctly in the browser.
Is that Dashboard It's available again—use it for tasks where you need a preview or a plugin's specific settings screen. After making a change to the theme, for example, viewing the affected page provides more meaningful information than the list of installed themes. The terminal can monitor the technical status; however, you’ll still need the browser for a visual inspection or to check an editorial workflow.
The hosting control panel or support team is the right place to turn to if your plan doesn't offer shell access or if the provider manages updates and restores on its own. Check which features and permissions are actually enabled for your environment. If the hosting provider controls plugin updates, clarify before taking any manual action whether they plan to do so and how it will work with their managed update process.
When asking about backups, be sure to specifically ask for the joint restoration from the database and website files from a matching backup set. An SQL dump does not include uploads or plugin files. If a failed update has modified files and the database, it is therefore not necessarily sufficient to simply restore the database. Also clarify whether you can initiate the restore yourself in the control panel or if you need support to do so. As long as the production target has not been clearly confirmed or the restoration process is unclear, do not execute any write commands on the production environment.
Sources and Current State of Knowledge
Status of the research:
Research status: November 20, 2026. The command examples were verified using the official documentation and were not executed on a hosting system. The available WP-CLI version and CLI PHP depend on the hosting environment.
https://make.wordpress.org/cli/handbook/guides/beginners-guide/
https://developer.wordpress.org/cli/commands/core/verify-checksums/
https://developer.wordpress.org/cli/commands/db/export/
https://make.wordpress.org/cli/handbook/guides/installing/
https://developer.wordpress.org/cli/commands/cli/
https://make.wordpress.org/cli/handbook/references/config/
https://developer.wordpress.org/cli/commands/core/
https://make.wordpress.org/cli/handbook/guides/troubleshooting/
https://developer.wordpress.org/cli/commands/search-replace/
https://developer.wordpress.org/cli/commands/plugin/update/




