Skip to content

WP-CLI ​

bash
wp wpff list
wp wpff export [<key>...] [--format=json|php] [--file=<file>]
wp wpff import <file>
wp wpff sync [--all]
wp wpff import-acf [--dry-run]
CommandWhat it does
listLists field groups. --format: table, json, csv or yaml.
exportExports field groups as JSON (ACF's format) or PHP. Without keys, exports all groups. --file writes to a file instead of the output.
importImports field groups from a JSON export (WP Freeform Fields or ACF). Existing groups with the same key are updated.
syncImports Local JSON files that are newer than the database or not in it yet. --all imports every file.
import-acfImports what ACF stored in the database: post types, taxonomies, options pages, then field groups. Keys are kept. --dry-run only lists what would be imported.

See Moving from ACF.

GPL-2.0-or-later. Not affiliated with ACF or WP Engine.