Export ACF JSON via WP-CLI
acf_export_jsonExport ACF field groups, post types, taxonomies, and options pages to JSON using WP-CLI.
Instructions
Run the whitelisted wp acf json export command. This does not execute arbitrary shell or PHP code.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "acf_export_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | ||
| stdout | No | ||
| postTypes | No | ||
| taxonomies | No | ||
| fieldGroups | No | ||
| optionsPages | No |