wp acf json


目录

Manages ACF JSON import, export, and synchronization for item types (field groups, post types, taxonomies, options pages).

Description

The wp acf json command provides CLI access to ACF’s Local JSON functionality, enabling automated workflows for version control, deployments, and CI/CD pipelines.

Available Commands

Command Description
wp acf json status Shows the sync status for ACF items
wp acf json sync Syncs local JSON changes to the database
wp acf json import Imports items from a JSON file
wp acf json export Exports items to a JSON file

Examples

# Show sync status for all item types
$ wp acf json status

# Sync all pending local JSON changes to database
$ wp acf json sync

# Import from a JSON file
$ wp acf json import ./acf-export.json

# Export all items to a directory
$ wp acf json export --dir=./exports/

# Export to stdout
$ wp acf json export --stdout

Requirements

Notes

These commands replicate the functionality available in the WordPress admin UI, making them ideal for:


版本号 #1
由 壳壳虫 创建于 2026-08-29 15:44:03 UTC
由 壳壳虫 更新于 2026-08-29 15:44:03 UTC