Run wp-cli
wpRun wp-cli as the site's owner with --path set, like args ["plugin", "list"]. Listing and checksum commands run straight away; deleting plugins or users, db reset/import, search-replace without --dry-run and eval need approval. Set background true for slow commands.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| why | No | One plain sentence for the user, shown on the approval page if this call needs their approval: what it does and why it is needed. | |
| args | Yes | ||
| site | No | Site root folder, like /var/www/shop, or one of the site's domains. Optional when the server has one site (see list_sites). | |
| server | No | Server name or id. Optional when the account has one server. | |
| background | No | ||
| approval_id | No | Only when repeating a call the user approved. |