Import & Export via WP CLI

Learn how to use WP CLI to import and export fields groups, CPT and taxonomies right from your terminal.

WP CLI allows developers to launch commands to manage WordPress directly from their terminal.

Shell

Modern Fields exposes several functions to import and export fields groups, CPT and taxonomies.

Export via WP CLI

All commands are available under wp modern-fields. To export a file, just add the sub command export.

Shell

Import with WP CLI

Now, you can also import groups, CPT and taxonomies from a JSON export file with the sub command import.

Shell

With WP CLI, you can automatize your import and export jobs when installing a WordPress site in local, or in your CI/CD pipeline.


Sync with theme


In this documentation