{"id":22583,"date":"2026-11-30T08:00:00","date_gmt":"2026-11-30T07:00:00","guid":{"rendered":"https:\/\/webhosting.de\/?p=22583"},"modified":"2026-11-21T08:30:08","modified_gmt":"2026-11-21T07:30:08","slug":"wordpress-wp-cli-hosting-administration","status":"publish","type":"post","link":"https:\/\/webhosting.de\/en\/wordpress-wp-cli-hosting-administration\/","title":{"rendered":"Administering WordPress with WP-CLI: Maintenance Without the Dashboard"},"content":{"rendered":"<div class=\"wh-article\" data-wh-layout=\"2.1.2\" style=\"width:100%;max-width:820px;margin:0 auto;color:#263b4b;font-family:inherit;font-size:18px;line-height:1.8;text-align:start;overflow-wrap:break-word;box-sizing:border-box\"><p class=\"wh-lead\" style=\"font-size:20px;line-height:1.7;color:#233746;margin:0 0 1.1em\">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 <strong style=\"font-weight:700;color:inherit\">Installation path<\/strong> 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. <\/p>\n<nav class=\"wh-toc\" aria-label=\"Contents of this article\" style=\"display:block;margin:28px 0 38px;padding:22px;border:1px solid #d9e4e8;border-radius:14px;background:#f4f8f8\"><p class=\"wh-toc-title\" style=\"font-size:13px;font-weight:700;letter-spacing:.08em;color:#49656b;margin:0 0 14px\">Go directly to the section<\/p><div class=\"wh-toc-grid\" style=\"display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:10px\"><div class=\"wh-toc-item\" style=\"display:block;min-width:0;margin:0;padding:0\"><a class=\"wh-toc-link\" href=\"#wp-cli-einordnen\" style=\"display:block;height:100%;padding:12px 15px;border:1px solid #dce6e8;border-radius:9px;background:#fff;color:#18575b;font-size:14px;line-height:1.5;font-weight:600;text-decoration:none;box-sizing:border-box\">What WP-CLI Can Do Without a Dashboard<\/a><\/div>\n<div class=\"wh-toc-item\" style=\"display:block;min-width:0;margin:0;padding:0\"><a class=\"wh-toc-link\" href=\"#shell-und-php\" style=\"display:block;height:100%;padding:12px 15px;border:1px solid #dce6e8;border-radius:9px;background:#fff;color:#18575b;font-size:14px;line-height:1.5;font-weight:600;text-decoration:none;box-sizing:border-box\">Check Shell Access and PHP Version<\/a><\/div>\n<div class=\"wh-toc-item\" style=\"display:block;min-width:0;margin:0;padding:0\"><a class=\"wh-toc-link\" href=\"#installation-auswaehlen\" style=\"display:block;height:100%;padding:12px 15px;border:1px solid #dce6e8;border-radius:9px;background:#fff;color:#18575b;font-size:14px;line-height:1.5;font-weight:600;text-decoration:none;box-sizing:border-box\">Confirm the Correct WordPress Installation<\/a><\/div>\n<div class=\"wh-toc-item\" style=\"display:block;min-width:0;margin:0;padding:0\"><a class=\"wh-toc-link\" href=\"#diagnose-im-terminal\" style=\"display:block;height:100%;padding:12px 15px;border:1px solid #dce6e8;border-radius:9px;background:#fff;color:#18575b;font-size:14px;line-height:1.5;font-weight:600;text-decoration:none;box-sizing:border-box\">Isolating a Dashboard Failure in the Terminal<\/a><\/div>\n<div class=\"wh-toc-item\" style=\"display:block;min-width:0;margin:0;padding:0\"><a class=\"wh-toc-link\" href=\"#updates-vorbereiten\" style=\"display:block;height:100%;padding:12px 15px;border:1px solid #dce6e8;border-radius:9px;background:#fff;color:#18575b;font-size:14px;line-height:1.5;font-weight:600;text-decoration:none;box-sizing:border-box\">Check Plugin Updates in Advance<\/a><\/div>\n<div class=\"wh-toc-item\" style=\"display:block;min-width:0;margin:0;padding:0\"><a class=\"wh-toc-link\" href=\"#datenbank-und-domainwechsel\" style=\"display:block;height:100%;padding:12px 15px;border:1px solid #dce6e8;border-radius:9px;background:#fff;color:#18575b;font-size:14px;line-height:1.5;font-weight:600;text-decoration:none;box-sizing:border-box\">Export the Database and Prepare for the Domain Change<\/a><\/div>\n<div class=\"wh-toc-item\" style=\"display:block;min-width:0;margin:0;padding:0\"><a class=\"wh-toc-link\" href=\"#startfehler-weiter-eingrenzen\" style=\"display:block;height:100%;padding:12px 15px;border:1px solid #dce6e8;border-radius:9px;background:#fff;color:#18575b;font-size:14px;line-height:1.5;font-weight:600;text-decoration:none;box-sizing:border-box\">If WordPress Doesn't Start in the Shell<\/a><\/div>\n<div class=\"wh-toc-item\" style=\"display:block;min-width:0;margin:0;padding:0\"><a class=\"wh-toc-link\" href=\"#wiederkehrende-aufgaben\" style=\"display:block;height:100%;padding:12px 15px;border:1px solid #dce6e8;border-radius:9px;background:#fff;color:#18575b;font-size:14px;line-height:1.5;font-weight:600;text-decoration:none;box-sizing:border-box\">Reliably Run Recurring WP-CLI Tasks<\/a><\/div>\n<div class=\"wh-toc-item\" style=\"display:block;min-width:0;margin:0;padding:0\"><a class=\"wh-toc-link\" href=\"#panel-oder-support\" style=\"display:block;height:100%;padding:12px 15px;border:1px solid #dce6e8;border-radius:9px;background:#fff;color:#18575b;font-size:14px;line-height:1.5;font-weight:600;text-decoration:none;box-sizing:border-box\">When to Take Over the Hosting Panel or Support<\/a><\/div>\n<\/div><\/nav><section class=\"wh-section\" aria-labelledby=\"wp-cli-einordnen\" style=\"display:block;margin:0 0 36px;min-width:0\"><h2 id=\"wp-cli-einordnen\" style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">What WP-CLI Can Do Without a Dashboard<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">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 <strong style=\"font-weight:700;color:inherit\">Shell on the hosting system<\/strong>, 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. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">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 <strong style=\"font-weight:700;color:inherit\">WP-CLI<\/strong> 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. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Other exams are in progress <strong style=\"font-weight:700;color:inherit\">Before Launching WordPress<\/strong>. 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. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">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.  <\/p>\n<\/section><section class=\"wh-section\" aria-labelledby=\"shell-und-php\" style=\"display:block;margin:0 0 36px;min-width:0\"><h2 id=\"shell-und-php\" style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">Check Shell Access and PHP Version<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">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 <strong style=\"font-weight:700;color:inherit\">Website Users<\/strong> is intended for the desired installation. Run the commands using this account instead of switching to root if a permission error occurs.  <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">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\u2019s 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. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">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 <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">wp<\/code> and <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">php<\/code> . 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.  <\/p>\n<div class=\"wh-code-window\" data-wh-code style=\"margin:28px 0 34px;border:1px solid #2c4656;border-radius:12px;overflow:hidden;background:#132a3b;box-shadow:0 9px 25px -13px rgba(15,35,55,.2)\"><div class=\"wh-code-toolbar\" style=\"display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:11px 16px;background:#223e50;color:#edf5fa;font-size:13px;line-height:1.5;font-weight:600\"><span>Terminal<\/span><button type=\"button\" class=\"wh-code-copy\" data-wh-copy hidden style=\"padding:6px 11px;border:1px solid #7893a1;border-radius:6px;background:transparent;color:#fff;font-size:12px;line-height:1.5;font-weight:600;cursor:pointer\">Copy code<\/button><span class=\"wh-copy-status\" aria-live=\"polite\"><\/span><span data-wh-copy-success hidden>Copied<\/span><span data-wh-copy-fallback hidden>Code highlighted\u2014please copy<\/span><\/div><pre class=\"wh-code\" data-no-translation translate=\"no\" style=\"display:block;margin:0;padding:20px;max-width:100%;overflow-x:auto;color:#edf5fa;background:#132a3b;font:14px\/1.75 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre;direction:ltr;text-align:left\"><code class=\"language-bash\" style=\"font:inherit;color:inherit;background:transparent;padding:0;border:0;white-space:inherit\">wp --info\nphp --version<\/code><\/pre><\/div><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">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 <strong style=\"font-weight:700;color:inherit\">PHP via WP-CLI<\/strong>, not the Web PHP version displayed in the website panel.  <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">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\u2019re about to select. This way, if an error message appears, you\u2019ll be able to tell whether it\u2019s related to the availability of a command option or to the status of the WordPress files on the hosting system. <\/p>\n<\/section><section class=\"wh-section\" aria-labelledby=\"installation-auswaehlen\" style=\"display:block;margin:0 0 36px;min-width:0\"><h2 id=\"installation-auswaehlen\" style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">Confirm the Correct WordPress Installation<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Using the hosting information, determine the <strong style=\"font-weight:700;color:inherit\">absolute installation path<\/strong> 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, <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">\/srv\/staging\/wordpress<\/code> 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.  <\/p>\n<div class=\"wh-code-window\" data-wh-code style=\"margin:28px 0 34px;border:1px solid #2c4656;border-radius:12px;overflow:hidden;background:#132a3b;box-shadow:0 9px 25px -13px rgba(15,35,55,.2)\"><div class=\"wh-code-toolbar\" style=\"display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:11px 16px;background:#223e50;color:#edf5fa;font-size:13px;line-height:1.5;font-weight:600\"><span>Terminal<\/span><button type=\"button\" class=\"wh-code-copy\" data-wh-copy hidden style=\"padding:6px 11px;border:1px solid #7893a1;border-radius:6px;background:transparent;color:#fff;font-size:12px;line-height:1.5;font-weight:600;cursor:pointer\">Copy code<\/button><span class=\"wh-copy-status\" aria-live=\"polite\"><\/span><span data-wh-copy-success hidden>Copied<\/span><span data-wh-copy-fallback hidden>Code highlighted\u2014please copy<\/span><\/div><pre class=\"wh-code\" data-no-translation translate=\"no\" style=\"display:block;margin:0;padding:20px;max-width:100%;overflow-x:auto;color:#edf5fa;background:#132a3b;font:14px\/1.75 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre;direction:ltr;text-align:left\"><code class=\"language-bash\" style=\"font:inherit;color:inherit;background:transparent;padding:0;border:0;white-space:inherit\">wp --path=\/srv\/staging\/wordpress core version\nwp --path=\/srv\/staging\/wordpress plugin list<\/code><\/pre><\/div><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">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.  <\/p>\n<figure class=\"wp-block-image size-large wh-figure\" aria-describedby=\"wh-caption-detail1\" style=\"display:block;float:none;clear:both;width:100%;max-width:760px;margin:34px auto 40px;border:1px solid #dae5e9;border-radius:14px;overflow:hidden;background:#f5f8fa;box-shadow:0 10px 28px -17px rgba(24,47,60,.28);box-sizing:border-box\"><div class=\"wh-figure-media\" style=\"display:block;background:#eef3f5;line-height:0\"><img loading=\"lazy\" width=\"800\" height=\"534\" src=\"https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/wp-cli-staging-produktion-ziel-51783280-detail1-172dc8c355-1024x683.webp\" class=\"wp-image-22591\" alt=\"AI-generated stock image of two nearly identical file folders, one of which is pulled out\" decoding=\"async\" srcset=\"https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/wp-cli-staging-produktion-ziel-51783280-detail1-172dc8c355-1024x683.webp 1024w, https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/wp-cli-staging-produktion-ziel-51783280-detail1-172dc8c355-300x200.webp 300w, https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/wp-cli-staging-produktion-ziel-51783280-detail1-172dc8c355-768x512.webp 768w, https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/wp-cli-staging-produktion-ziel-51783280-detail1-172dc8c355-18x12.webp 18w, https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/wp-cli-staging-produktion-ziel-51783280-detail1-172dc8c355.webp 1536w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" ><\/div><figcaption class=\"wh-caption\" id=\"wh-caption-detail1\" style=\"display:block;margin:0;padding:12px 18px 15px;border-top:1px solid #dce5e9;color:#506575;background:#f5f8fa;font-size:14px;line-height:1.55;text-align:start\">AI-generated stock image: Even if the staging and production environments look similar, what matters is that they match the confirmed installation path.<\/figcaption><\/figure><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">In the case of a <strong style=\"font-weight:700;color:inherit\">Multisite Installation<\/strong> Directories and sites are two different levels. With <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">--path<\/code> select the WordPress installation. With <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">--url<\/code> 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.  <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">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.  <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">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\u2014and, if applicable, which host or site\u2014the alias points to. Test it first with a read-only command. <\/p>\n<\/section><section class=\"wh-section\" aria-labelledby=\"diagnose-im-terminal\" style=\"display:block;margin:0 0 36px;min-width:0\"><h2 id=\"diagnose-im-terminal\" style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">Isolating a Dashboard Failure in the Terminal<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">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\u2019s core files. Continue to run write-intensive tests on staging. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">The <strong style=\"font-weight:700;color:inherit\">Checksum Comparison<\/strong> 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. <\/p>\n<div class=\"wh-code-window\" data-wh-code style=\"margin:28px 0 34px;border:1px solid #2c4656;border-radius:12px;overflow:hidden;background:#132a3b;box-shadow:0 9px 25px -13px rgba(15,35,55,.2)\"><div class=\"wh-code-toolbar\" style=\"display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:11px 16px;background:#223e50;color:#edf5fa;font-size:13px;line-height:1.5;font-weight:600\"><span>Terminal<\/span><button type=\"button\" class=\"wh-code-copy\" data-wh-copy hidden style=\"padding:6px 11px;border:1px solid #7893a1;border-radius:6px;background:transparent;color:#fff;font-size:12px;line-height:1.5;font-weight:600;cursor:pointer\">Copy code<\/button><span class=\"wh-copy-status\" aria-live=\"polite\"><\/span><span data-wh-copy-success hidden>Copied<\/span><span data-wh-copy-fallback hidden>Code highlighted\u2014please copy<\/span><\/div><pre class=\"wh-code\" data-no-translation translate=\"no\" style=\"display:block;margin:0;padding:20px;max-width:100%;overflow-x:auto;color:#edf5fa;background:#132a3b;font:14px\/1.75 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre;direction:ltr;text-align:left\"><code class=\"language-bash\" style=\"font:inherit;color:inherit;background:transparent;padding:0;border:0;white-space:inherit\">wp --path=\/srv\/staging\/wordpress core verify-checksums<\/code><\/pre><\/div><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">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. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">If the normal plugin list fails to load at startup, repeat the command in the same shell and for the same installation using both <strong style=\"font-weight:700;color:inherit\">Skip Options<\/strong>. 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. <\/p>\n<div class=\"wh-code-window\" data-wh-code style=\"margin:28px 0 34px;border:1px solid #2c4656;border-radius:12px;overflow:hidden;background:#132a3b;box-shadow:0 9px 25px -13px rgba(15,35,55,.2)\"><div class=\"wh-code-toolbar\" style=\"display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:11px 16px;background:#223e50;color:#edf5fa;font-size:13px;line-height:1.5;font-weight:600\"><span>Terminal<\/span><button type=\"button\" class=\"wh-code-copy\" data-wh-copy hidden style=\"padding:6px 11px;border:1px solid #7893a1;border-radius:6px;background:transparent;color:#fff;font-size:12px;line-height:1.5;font-weight:600;cursor:pointer\">Copy code<\/button><span class=\"wh-copy-status\" aria-live=\"polite\"><\/span><span data-wh-copy-success hidden>Copied<\/span><span data-wh-copy-fallback hidden>Code highlighted\u2014please copy<\/span><\/div><pre class=\"wh-code\" data-no-translation translate=\"no\" style=\"display:block;margin:0;padding:20px;max-width:100%;overflow-x:auto;color:#edf5fa;background:#132a3b;font:14px\/1.75 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre;direction:ltr;text-align:left\"><code class=\"language-bash\" style=\"font:inherit;color:inherit;background:transparent;padding:0;border:0;white-space:inherit\">wp --path=\/srv\/staging\/wordpress --skip-plugins --skip-themes plugin list<\/code><\/pre><\/div><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">If only this second call succeeds, it indicates a problem loading regular plugins or themes. It\u2019s 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.  <\/p>\n<div class=\"wh-table-scroll\" tabindex=\"0\" role=\"region\" aria-label=\"Initial Troubleshooting Steps for Issues with WP-CLI on the Hosting System\" style=\"width:100%;max-width:100%;overflow-x:auto;margin:28px 0;border:1px solid #dce5e9;border-radius:14px;background:#fff;box-shadow:0 10px 28px -16px rgba(24,47,60,.32);box-sizing:border-box\"><table style=\"width:100%;min-width:580px;border-collapse:separate;border-spacing:0;border:0;margin:0;font-size:15px;line-height:1.6;background:#fff\"><caption style=\"padding:20px;text-align:start;font-size:17px;line-height:1.5;font-weight:700;color:#173246;background:#fff\">Initial Troubleshooting Steps for Issues with WP-CLI on the Hosting System<\/caption><thead><tr><th scope=\"col\" style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#19394d;color:#fff\">Situation<\/th><th scope=\"col\" style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#19394d;color:#fff\">First Call for Papers<\/th><th scope=\"col\" style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#19394d;color:#fff\">As the results show<\/th><th scope=\"col\" style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#19394d;color:#fff\">Next step<\/th><\/tr><\/thead><tbody><tr><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">wp not found<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">command -v wp<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">No output: The current shell does not resolve \"wp\".<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">Check the search path and the host terminal.<\/td><\/tr><tr><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">Suspected Incorrect Installation<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">wp \u2013path=INSTALLATION_PATH core version<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">A version can be identified at this path; the site identity remains unspecified.<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">Replace the placeholder with the path you want to test and verify it in the panel; for multisite installations, also check the \u2013url.<\/td><\/tr><tr><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">PHP Error on Startup<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">wp \u2013info<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">If successful, this displays the PHP from WP-CLI, not necessarily the web PHP.<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">Review the list of plugins with skip options and compare the error message.<\/td><\/tr><tr><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">Dump failed<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">command -v mysqldump<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">Indicates whether the shell can find the export program, not whether the login is successful.<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">Analyze export errors and check database access.<\/td><\/tr><tr><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">Unexpected Migration Matches<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">search-replace preview with \u2013dry-run<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">The output refers to the tables that were actually checked.<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">Synchronize the table selection and repeat the preview.<\/td><\/tr><\/tbody><\/table><\/div><\/section><section class=\"wh-section\" aria-labelledby=\"updates-vorbereiten\" style=\"display:block;margin:0 0 36px;min-width:0\"><h2 id=\"updates-vorbereiten\" style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">Check Plugin Updates in Advance<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">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 <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">--all<\/code> lists all installed plugins and displays them via <strong style=\"font-weight:700;color:inherit\">Dry run<\/strong>, 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. <\/p>\n<div class=\"wh-code-window\" data-wh-code style=\"margin:28px 0 34px;border:1px solid #2c4656;border-radius:12px;overflow:hidden;background:#132a3b;box-shadow:0 9px 25px -13px rgba(15,35,55,.2)\"><div class=\"wh-code-toolbar\" style=\"display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:11px 16px;background:#223e50;color:#edf5fa;font-size:13px;line-height:1.5;font-weight:600\"><span>Terminal<\/span><button type=\"button\" class=\"wh-code-copy\" data-wh-copy hidden style=\"padding:6px 11px;border:1px solid #7893a1;border-radius:6px;background:transparent;color:#fff;font-size:12px;line-height:1.5;font-weight:600;cursor:pointer\">Copy code<\/button><span class=\"wh-copy-status\" aria-live=\"polite\"><\/span><span data-wh-copy-success hidden>Copied<\/span><span data-wh-copy-fallback hidden>Code highlighted\u2014please copy<\/span><\/div><pre class=\"wh-code\" data-no-translation translate=\"no\" style=\"display:block;margin:0;padding:20px;max-width:100%;overflow-x:auto;color:#edf5fa;background:#132a3b;font:14px\/1.75 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre;direction:ltr;text-align:left\"><code class=\"language-bash\" style=\"font:inherit;color:inherit;background:transparent;padding:0;border:0;white-space:inherit\">wp --path=\/srv\/staging\/wordpress plugin update --all --dry-run<\/code><\/pre><\/div><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">The preview is not a compatibility test. Before performing the actual update, verify that Staging uses separate WordPress files and a <strong style=\"font-weight:700;color:inherit\">in-house database<\/strong> ... The correct file path alone does not protect production data if the staging configuration still points to the live database.  <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">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. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">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.<\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Schedule a WordPress core update separately from the plugin updates. <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">wp core update<\/code> updates the core files; <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">wp core update-db<\/code> 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. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">For an isolated initial test, you can use a plugin with <a href=\"https:\/\/webhosting.de\/en\/test-the-wordpress-playground-in-your-browser\/\">Try WordPress Playground in Your Browser<\/a>. 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.<\/p>\n<\/section><section class=\"wh-section\" aria-labelledby=\"datenbank-und-domainwechsel\" style=\"display:block;margin:0 0 36px;min-width:0\"><h2 id=\"datenbank-und-domainwechsel\" style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">Export the Database and Prepare for the Domain Change<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">wp db export<\/code> is a terminal command, not an SQL statement. It reads the database configuration for the selected installation and calls <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">mysqldump<\/code> . 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\u2014one to which your website user has write access. <\/p>\n<div class=\"wh-code-window\" data-wh-code style=\"margin:28px 0 34px;border:1px solid #2c4656;border-radius:12px;overflow:hidden;background:#132a3b;box-shadow:0 9px 25px -13px rgba(15,35,55,.2)\"><div class=\"wh-code-toolbar\" style=\"display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:11px 16px;background:#223e50;color:#edf5fa;font-size:13px;line-height:1.5;font-weight:600\"><span>Terminal<\/span><button type=\"button\" class=\"wh-code-copy\" data-wh-copy hidden style=\"padding:6px 11px;border:1px solid #7893a1;border-radius:6px;background:transparent;color:#fff;font-size:12px;line-height:1.5;font-weight:600;cursor:pointer\">Copy code<\/button><span class=\"wh-copy-status\" aria-live=\"polite\"><\/span><span data-wh-copy-success hidden>Copied<\/span><span data-wh-copy-fallback hidden>Code highlighted\u2014please copy<\/span><\/div><pre class=\"wh-code\" data-no-translation translate=\"no\" style=\"display:block;margin:0;padding:20px;max-width:100%;overflow-x:auto;color:#edf5fa;background:#132a3b;font:14px\/1.75 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre;direction:ltr;text-align:left\"><code class=\"language-bash\" style=\"font:inherit;color:inherit;background:transparent;padding:0;border:0;white-space:inherit\">wp --path=\/srv\/staging\/wordpress db export \/srv\/private-backups\/staging-before-migration.sql<\/code><\/pre><\/div><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">The export does not change the data set, but it does create a <strong style=\"font-weight:700;color:inherit\">sensitive SQL dump<\/strong>. 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\u2019s backups, make sure you can restore both files and the database from a compatible version. <\/p>\n<figure class=\"wp-block-image size-large wh-figure\" aria-describedby=\"wh-caption-detail2\" style=\"display:block;float:none;clear:both;width:100%;max-width:760px;margin:34px auto 40px;border:1px solid #dae5e9;border-radius:14px;overflow:hidden;background:#f5f8fa;box-shadow:0 10px 28px -17px rgba(24,47,60,.28);box-sizing:border-box\"><div class=\"wh-figure-media\" style=\"display:block;background:#eef3f5;line-height:0\"><img loading=\"lazy\" width=\"800\" height=\"534\" src=\"https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/wp-cli-sql-dump-kein-vollbackup-51783280-detail2-f3b02c29c3-1024x683.webp\" class=\"wp-image-22592\" alt=\"AI-generated illustration of a database cylinder with a separate export sheet and remaining data sheets\" decoding=\"async\" srcset=\"https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/wp-cli-sql-dump-kein-vollbackup-51783280-detail2-f3b02c29c3-1024x683.webp 1024w, https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/wp-cli-sql-dump-kein-vollbackup-51783280-detail2-f3b02c29c3-300x200.webp 300w, https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/wp-cli-sql-dump-kein-vollbackup-51783280-detail2-f3b02c29c3-768x512.webp 768w, https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/wp-cli-sql-dump-kein-vollbackup-51783280-detail2-f3b02c29c3-18x12.webp 18w, https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/wp-cli-sql-dump-kein-vollbackup-51783280-detail2-f3b02c29c3.webp 1536w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" ><\/div><figcaption class=\"wh-caption\" id=\"wh-caption-detail2\" style=\"display:block;margin:0;padding:12px 18px 15px;border-top:1px solid #dce5e9;color:#506575;background:#f5f8fa;font-size:14px;line-height:1.55;text-align:start\">AI-generated illustration: The SQL export contains the database, but not any uploads, plugin files, or themes.<\/figcaption><\/figure><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">If no tables are selected, the command exports all tables from the configured database. <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">--path<\/code> 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 <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">--tables<\/code> as a comma-separated list. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">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.   <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">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 <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">guid<\/code> and saves because of <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">--dry-run<\/code> No substitutions. <\/p>\n<div class=\"wh-code-window\" data-wh-code style=\"margin:28px 0 34px;border:1px solid #2c4656;border-radius:12px;overflow:hidden;background:#132a3b;box-shadow:0 9px 25px -13px rgba(15,35,55,.2)\"><div class=\"wh-code-toolbar\" style=\"display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:11px 16px;background:#223e50;color:#edf5fa;font-size:13px;line-height:1.5;font-weight:600\"><span>Terminal<\/span><button type=\"button\" class=\"wh-code-copy\" data-wh-copy hidden style=\"padding:6px 11px;border:1px solid #7893a1;border-radius:6px;background:transparent;color:#fff;font-size:12px;line-height:1.5;font-weight:600;cursor:pointer\">Copy code<\/button><span class=\"wh-copy-status\" aria-live=\"polite\"><\/span><span data-wh-copy-success hidden>Copied<\/span><span data-wh-copy-fallback hidden>Code highlighted\u2014please copy<\/span><\/div><pre class=\"wh-code\" data-no-translation translate=\"no\" style=\"display:block;margin:0;padding:20px;max-width:100%;overflow-x:auto;color:#edf5fa;background:#132a3b;font:14px\/1.75 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre;direction:ltr;text-align:left\"><code class=\"language-bash\" style=\"font:inherit;color:inherit;background:transparent;padding:0;border:0;white-space:inherit\">wp --path=\/srv\/staging\/wordpress search-replace &#039;https:\/\/alt.example&#039; &#039;https:\/\/neu.example&#039; --skip-columns=guid --dry-run<\/code><\/pre><\/div><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">The <strong style=\"font-weight:700;color:inherit\">Table Size<\/strong> This call is based on the information in <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">$wpdb<\/code> registered tables. In Multisite, these are, by default, the registered tables of the selected site. Only <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">--network<\/code> 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 <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">--network<\/code> included. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">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. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">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. <\/p>\n<\/section><section class=\"wh-section\" aria-labelledby=\"startfehler-weiter-eingrenzen\" style=\"display:block;margin:0 0 36px;min-width:0\"><h2 id=\"startfehler-weiter-eingrenzen\" style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">If WordPress Doesn't Start in the Shell<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Does the plugin list also fail with <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">--skip-plugins<\/code> and <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">--skip-themes<\/code>, the next clue is the <strong style=\"font-weight:700;color:inherit\">specific error message<\/strong>. These options do not rule out all extensions as the cause: \u201cmust-use\u201d 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.  <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">If the message indicates a missing PHP extension or unsupported syntax, check with <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">wp --info<\/code> 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.  <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">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. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">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\u2014if 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. <\/p>\n<\/section><section class=\"wh-section\" aria-labelledby=\"wiederkehrende-aufgaben\" style=\"display:block;margin:0 0 36px;min-width:0\"><h2 id=\"wiederkehrende-aufgaben\" style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">Reliably Run Recurring WP-CLI Tasks<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">A regular <strong style=\"font-weight:700;color:inherit\">Inventory<\/strong> 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. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">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 <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">wp --info<\/code> in both contexts.  <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">For each run, record the time, target environment, output, error messages, and <strong style=\"font-weight:700;color:inherit\">Return Status<\/strong> 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. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">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 <a href=\"https:\/\/webhosting.de\/en\/automate-plesk-event-handlers-for-an-efficient-hosting-administration-workflow\/\">Plesk Event Handlers for Hosting Automation<\/a> It also shows how tasks can be linked to events in the hosting panel. Such handlers are not required for WP-CLI.<\/p>\n<\/section><section class=\"wh-section\" aria-labelledby=\"panel-oder-support\" style=\"display:block;margin:0 0 36px;min-width:0\"><h2 id=\"panel-oder-support\" style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">When to Take Over the Hosting Panel or Support<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">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.  <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Is that <strong style=\"font-weight:700;color:inherit\">Dashboard<\/strong> It's available again\u2014use 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\u2019ll still need the browser for a visual inspection or to check an editorial workflow. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">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.  <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">When asking about backups, be sure to specifically ask for the <strong style=\"font-weight:700;color:inherit\">joint restoration<\/strong> 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. <\/p>\n<\/section><section class=\"wh-sources\" style=\"margin:40px 0 0;padding:24px 0 0;border-top:1px solid #dce5e9;color:#596b7b;font-size:14px;line-height:1.65\"><h2 style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">Sources and Current State of Knowledge<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Status of the research: <time datetime=\"2026-11-20\">2026-11-20<\/time><\/p><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">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.<\/p><div class=\"wh-source-urls\"><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><span class=\"wh-source-url\" data-no-translation dir=\"ltr\" style=\"overflow-wrap:anywhere;font:12px\/1.6 ui-monospace,monospace;direction:ltr\">https:\/\/make.wordpress.org\/cli\/handbook\/guides\/beginners-guide\/<\/span><\/p><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><span class=\"wh-source-url\" data-no-translation dir=\"ltr\" style=\"overflow-wrap:anywhere;font:12px\/1.6 ui-monospace,monospace;direction:ltr\">https:\/\/developer.wordpress.org\/cli\/commands\/core\/verify-checksums\/<\/span><\/p><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><span class=\"wh-source-url\" data-no-translation dir=\"ltr\" style=\"overflow-wrap:anywhere;font:12px\/1.6 ui-monospace,monospace;direction:ltr\">https:\/\/developer.wordpress.org\/cli\/commands\/db\/export\/<\/span><\/p><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><span class=\"wh-source-url\" data-no-translation dir=\"ltr\" style=\"overflow-wrap:anywhere;font:12px\/1.6 ui-monospace,monospace;direction:ltr\">https:\/\/make.wordpress.org\/cli\/handbook\/guides\/installing\/<\/span><\/p><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><span class=\"wh-source-url\" data-no-translation dir=\"ltr\" style=\"overflow-wrap:anywhere;font:12px\/1.6 ui-monospace,monospace;direction:ltr\">https:\/\/developer.wordpress.org\/cli\/commands\/cli\/<\/span><\/p><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><span class=\"wh-source-url\" data-no-translation dir=\"ltr\" style=\"overflow-wrap:anywhere;font:12px\/1.6 ui-monospace,monospace;direction:ltr\">https:\/\/make.wordpress.org\/cli\/handbook\/references\/config\/<\/span><\/p><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><span class=\"wh-source-url\" data-no-translation dir=\"ltr\" style=\"overflow-wrap:anywhere;font:12px\/1.6 ui-monospace,monospace;direction:ltr\">https:\/\/developer.wordpress.org\/cli\/commands\/core\/<\/span><\/p><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><span class=\"wh-source-url\" data-no-translation dir=\"ltr\" style=\"overflow-wrap:anywhere;font:12px\/1.6 ui-monospace,monospace;direction:ltr\">https:\/\/make.wordpress.org\/cli\/handbook\/guides\/troubleshooting\/<\/span><\/p><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><span class=\"wh-source-url\" data-no-translation dir=\"ltr\" style=\"overflow-wrap:anywhere;font:12px\/1.6 ui-monospace,monospace;direction:ltr\">https:\/\/developer.wordpress.org\/cli\/commands\/search-replace\/<\/span><\/p><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><span class=\"wh-source-url\" data-no-translation dir=\"ltr\" style=\"overflow-wrap:anywhere;font:12px\/1.6 ui-monospace,monospace;direction:ltr\">https:\/\/developer.wordpress.org\/cli\/commands\/plugin\/update\/<\/span><\/p><\/div><\/section><\/div>","protected":false},"excerpt":{"rendered":"<p>With WP-CLI, you can troubleshoot WordPress even if the dashboard is down. First, check which installation and which PHP version the command is using. This will help you interpret the results correctly and distinguish them from previews of actual changes.<\/p>","protected":false},"author":1,"featured_media":22590,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[733],"tags":[],"class_list":["post-22583","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress"],"acf":[],"_links":{"self":[{"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/posts\/22583","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/comments?post=22583"}],"version-history":[{"count":4,"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/posts\/22583\/revisions"}],"predecessor-version":[{"id":22593,"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/posts\/22583\/revisions\/22593"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/media\/22590"}],"wp:attachment":[{"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/media?parent=22583"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/categories?post=22583"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/tags?post=22583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}