略過並前往主要內容
致電我們
服務專線和服務時間
預約回電

無須線上等候,提交預約我們將儘快回電。

預約回電
說明中心

瀏覽我們線上說明資源

說明

Managed WordPress 說明

Use WP-CLI to manage your site

You can control your Managed WordPress account through WP-CLI (WordPress Command Line Interface). If you're proficient with command line interfaces, this can be a much simpler way to get around WordPress.

  1. Access your Managed WordPress account via SSH (more info).

    Note: For Pro Managed WordPress accounts (available in U.S.A. and Canada only), skip the next step and continue with Step 3.

  2. Change to your account's html directory using the following command:
    cd html
  3. Run the WP-CLI application using the following command:
    wp

You can find a full list of commands on the WP-CLI site

Example Commands

Action Command
Update all plugins wp plugin update --all
Update all themes wp theme update --all
Repair your database wp db repair
Flush object and varnish cache wp purge

More info