Skip to content
SANDBOX.page
  • Features
  • Premium Plugins & Themes
    • Control Panel
    • Manage Subscription
SANDBOX.page
  • Features
  • Premium Plugins & Themes
    • Control Panel
    • Manage Subscription
  • Login

Documentation

Managing WordPress

  • Update WordPress Installations
  • Managing WordPress Installations
  • Install WordPress
  • Maintenance Mode
  • Smart Updates

Securing WordPress & Backup/Restore

  • Backup and Restore
  • Securing WordPress
  • Restoring a WordPress Installation from a Restore Point

Premium Themes and Plugins

  • Install Premium Plugins
  • Install Premium Themes

Git Support

  • Git In-depth Overview
  • Getting Started with Git
  • Overview

Advanced Topics

  • Cron Jobs
  • Access WP-CLI

Stage, Sync, Clone and Migrate

  • Restoring a WordPress Installation from a Restore Point
  • Copying Data from One WordPress Website to Another
  • Cloning a WordPress Website
  • Home
  • Docs
  • Advanced Topics
  • Access WP-CLI

Access WP-CLI

WP-CLI is the official WordPress command-line interface for managing WordPress websites. See more information about WP-CLI.

You can access WP-CLI directly from the Plesk command-line interface using the wp-toolkit utility with no need to install WP-CLI on the server.

Read more about the wp-toolkit utility.

To call a WP-CLI command via the Sandbox.page command-line interface:

Connect to your Sandbox.page server via SSH (on Linux) or via RDP (on Windows) and, in the command line, run the command:

sandbox.page ext wp-toolkit –wp-cli -instance-id [ID] [command] [options]
where:

[ID] is the ID of the WordPress installation in Sandbox.page. To learn the ID, go to WordPress and click the name of the WordPress installation. The ID will be displayed at the end of the URL in the browser. For example, if the URL ends with /id/2, then the ID=2.
[command] is a WP-CLI command prefixed by — (for example, — core).
[options] is the list of the WP-CLI command’s options.
The full list of WP-CLI commands and their options can be found here .

Examples:
To get the main WordPress information (a blog name, a website URL, a version, an updated version, plugins, and themes):

sandbox.page ext wp-toolkit –wp-cli -instance-id 4 — core info
To get help for the core command:

sandbox.page ext wp-toolkit –wp-cli -instance-id 4 — help core
To install and activate the latest version of the bbPress plugin from wordpress.org:

sandbox.page wp-toolkit –wp-cli instance-id 4 — plugin install bbpress –activate

Note: To make the changes performed by running a WP-CLI command visible in WordPress Toolkit, refresh the corresponding WordPress installation. To do so, go to WordPress and then click the icon on the installation card.

What are your Feelings
What are your Feelings
Still stuck? How can we help?

How can we help?

Cron Jobs
  • About
  • TERMS OF SERVICE
  • Blog
Empowering WordPress Developers since 2021