diff --git a/.gitignore b/.gitignore
index 35da243e7f9c0667771d2b396b76c5631ba95dcb..a169ab3bfb89a98dd22805fe2c32d6a77f40ff7e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,6 +12,7 @@ dist
 dist-ssr
 *.local
 dist_electron
+.env
 
 # Editor directories and files
 .vscode/*
diff --git a/README.md b/README.md
index b1a22ef074e60ded956679eba8eb1d4c3200d07c..8ebf4462bea26520cdbdb5b32db97c0fde7c7ed7 100644
--- a/README.md
+++ b/README.md
@@ -19,5 +19,10 @@ run run wdio
 
 # Run linter
 npm run lint
+```
 
-```
\ No newline at end of file
+### Setup preview
+
+1. Create a `.env` containing the Gitlab url and access token to fetch the preview files : `GITLAB_URL`, `GITLAB_TOKEN`
+2. Run `npm run updatePreview`
+3. Build or run the app in dev using above scripts
\ No newline at end of file
diff --git a/package.json b/package.json
index 6bcbc2252a0f4823e9dd44d3d97aa681bcc66f66..f7dc156787c56325f003e1d0a20916b9419300cd 100644
--- a/package.json
+++ b/package.json
@@ -19,7 +19,8 @@
     "test": "vitest",
     "coverage": "vitest --coverage",
     "wdio": "wdio run ./wdio.conf.ts",
-    "lint": "npx eslint ./src ./test ./electron/* --ext .ts,.vue,.js"
+    "lint": "npx eslint ./src ./test ./electron/* --ext .ts,.vue,.js",
+    "updatePreview": "export $(grep -v '^#' .env | xargs) && curl --location --output public/preview.zip --header \"PRIVATE-TOKEN: $GITLAB_TOKEN\" $GITLAB_URL"
   },
   "dependencies": {
     "@vue-flow/additional-components": "^1.3.3",