AutoExportTemplatesAndFields by jaromic

AutoExportTemplatesAndFields module for ProcessWire

pw-autoexport-tf - AutoExportTemplatesAndFields module for ProcessWire


CAUTION: This module is not compatible with repeater fields or ProFields. See BUGS.

To install this module manually, simply put it into the site/modules directory of your ProcessWire installation, so that directory should look like this:



Automatic export when changing fields/templates

After installing the module, all changes to fields and templates are automatically exported after the respective request to the directory specified via the module's persistDirectory setting.

Import via command line

In order to facilitate executing the import as part of an automated process, it has been implemented as a command line application and can be called as follows (assuming the php executable can be called as php and the working directory is the root of the ProcessWire installation):

php site\modules\AutoExportTemplatesAndFields\cli\import.php --import

The import automatically creates a database backup which can be restored using:

php site\modules\AutoExportTemplatesAndFields\cli\import.php --restore <path>


  • (#1) This module is not compatible with repeater fields or ProFields. See this forum thread:

The BreakRepeaterFields module is included in the repository as a minimal showcase of what is breaking the repeater fields.


I am looking forward to hearing from you: Contact me for any issues or suggestions regarding this module or just drop an issue on github:

Install and use modules at your own risk. Always have a site and database backup before installing new modules.

Latest news

  • ProcessWire Weekly #527
    In the 527th issue of ProcessWire Weekly we'll check out what's new in the core this week, introduce a new third party module called Lister Calculator, and more. Read on! / 15 June 2024
  • ProFields Table Field with Actions support
    This week we have some updates for the ProFields table field (FieldtypeTable). These updates are primarily focused on adding new tools for the editor to facilitate input and management of content in a table field.
    Blog / 12 April 2024
  • Subscribe to weekly ProcessWire news

“We were really happy to build our new portfolio website on ProcessWire! We wanted something that gave us plenty of control on the back-end, without any bloat on the front end - just a nice, easy to access API for all our content that left us free to design and build however we liked.” —Castus, web design agency in Sheffield, UK