Question
Can WP Toolkit be managed via command-line?
Answer
WP Toolkit can be managed via command-line using the wp-toolkit command in SSH or WHM >> Terminal as the root user:
# which wp-toolkit
/usr/local/bin/wp-toolkit
For a list of options supported by wp-toolkit, run the following in SSH or WHM >> Terminal as the root user:
wp-toolkit --help
To obtain information on the usage of a specific option, run the following in SSH or WHM >> Terminal as the root user (replace $OPTION with the option you would like information on):
wp-toolkit --help -command $OPTION
Example (output included):
# wp-toolkit --help -command wp-cli
Usage:
wp-toolkit --wp-cli
-instance-id INSTANCE_ID|-domain-name DOMAIN_NAME -path PATH
-- WP_SUBCOMMAND
Executes a wp-cli call to the selected WordPress installation.
Arguments:
-instance-id WordPress installation ID
-domain-name Domain name
-path The relative path from the domain's document root
directory. Example: /subdirectory