WP CLI allows developers to launch commands to manage WordPress directly from their terminal.
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.
Import with WP CLI
Now, you can also import groups, CPT and taxonomies from a JSON export file with the sub command import.
With WP CLI, you can automatize your import and export jobs when installing a WordPress site in local, or in your CI/CD pipeline.