Run WP-CLI Command
kinsta_environments_wp-cliRun WP-CLI commands on a Kinsta environment to manage WordPress sites. Provide an environment ID and a command starting with 'wp '.
Instructions
Run a WP-CLI command on an environment. The command must start with 'wp '.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"env_id": "<env_id>",
"wp_command": "<wp_command>"
},
"name": "kinsta_environments_wp-cli"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env_id | Yes | The environment ID | |
| wp_command | Yes | WP-CLI command to run (must start with 'wp ') |