This application allows exporting forms from Formio server and importing them to the server again. It could be used for non-enterprise Formio servers for transfering forms between servers and repositories
-
Clone this repository
git clone https://github.com/Artezio/formio-import-export-tool.git -
Build the application
mvn clean install
-
To start in GUI mode, navigate to
targetdirectory and executejava -jar import-export-tool.jar -
Fill in the server url, username and password for accessing the server.
-
Downloading forms from the server:
- You can provide comma-separated list of tags to filter only forms with those tags
- Specified directory will get filled with downloaded forms. If forms have slashes (
/) in paths, then corresponding subdirectories will be created - Click
Action -> Downloadand wait for green or red indicator to appear, indicating success or failure correspondingly
-
Uploading forms to the server:
- Existing Forms will be overwritten
- All uploaded forms will be accessible to
Administratoruser - All forms from specified directory will be uploaded, including subdirectories. If a form resites inside a subdirectory, its path will be constructed with forward slashes (e.g. if a form is located in
/a/b/form.jsonfile, then the form path will be set toa/b/form.jsonwhen uploaded to the server) - Click
Action -> Uploadand wait for green or red indicator to appear, indicating success or failure correspondingly
-
Deleting form from the server:
- You can either provide comma-separated list of tags or comma-separated list of form paths to filter specific forms
- If no tags or form paths are specified, all forms will be deleted from the server
- Form paths have a precedence over tags
- Click
Action -> Deleteand wait for green or red indicator to appear, indicating success or failure correspondingly
Navigate to target directory and run java -jar import-export-tool.jar -h to get command-line help