wp_cli
Execute WP-CLI commands on authorized WordPress sites with controlled arguments and user privileges.
Instructions
Voer opgegeven WP-CLI-argumenten uit voor een toegestane WordPress-site.
site_path moet in wp_allowed_sites staan en wp-config.php bevatten.
args wordt met shell-achtige argumentquoting opgesplitst, zonder
shelluitbreiding, en kan afhankelijk van het WP-CLI-commando de site
wijzigen. Standaard draait het commando als www-data; met
as_www_data=False draait het als root met --allow-root. De timeout
is 60 seconden; commando, stdout, stderr en exitcode worden geretourneerd.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | ||
| site_path | Yes | ||
| as_www_data | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||