Sync ACF Local JSON via WP-CLI
acf_sync_jsonSync changes from ACF Local JSON to WordPress using WP-CLI, with optional dry-run mode for testing.
Instructions
Explicitly sync Local JSON changes to WordPress using wp acf json sync; supports WP-CLI dry-run.
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_sync_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| type | No | ||
| dryRun | No |