Is it possible to manage Wordpress Toolkit via command-line?

kumkumsharma

Administrator
Staff member
We can easily manage Wordpress Toolkit with wp-toolkit command, we can run commands in Terminal but we need root access.

Code:
# which wp-toolkit
/usr/local/bin/wp-toolkit
If you want to know all the options of wp-toolkit then you can use below command for help:

Code:
wp-toolkit --help
You can check the usage for particular option, you have to run the command in terminal.

Code:
wp-toolkit --help -command $OPTION (Here $option is option and you can replace this with any option)
For Example:

Code:
# wp-toolkit --help -command wp-cli
Output:

Code:
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
 
Top