File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,8 @@ Commands:
8181 status Show all changes in project files - upstream and...
8282```
8383
84+ ### Examples
85+
8486For example, to download a project:
8587
8688```
@@ -91,6 +93,23 @@ To download a specific version of a project:
9193$ mergin --username john download --version v42 john/project1 ~/mergin/project1
9294```
9395
96+ To download a sepecific version of a single file:
97+
98+ 1 . First you need to download the project:
99+ ```
100+ mergin --username john download john/myproject
101+ ```
102+
103+ 2 . Go to the project directory
104+ ```
105+ cd myproject
106+ ```
107+
108+ 3 . Download the version of a file you want:
109+ ```
110+ mergin --username john download-file --version v273 myfile.gpkg /tmp/myfile-v273.gpkg
111+ ```
112+
94113If you do not want to specify username on the command line and be asked for you password every time,
95114it is possible to set env variables MERGIN_USERNAME and MERGIN_PASSWORD.
96115
You can’t perform that action at this time.
0 commit comments