The migrate command allows you to migrate submission data from one source to another using a simple command. You can either migrate data from a CSV into a form, or from a form into another form. This works by taking the data from <source>
, sending it through a middleware function called <transformer>
(which you provide) that transforms the data into the correct format, and then saving that data as a submission into the <destination>
form. If you are migrating data from one form to the same form within two different projects, you will just provide form
as your transform and your command would be as follows.