You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+**```<host>```** - Server host like `http://192.168.100.200:6330`.
22
23
23
24
25
+
#### exit codes
26
+
ems-cmd may return one of the following exit codes:
27
+
*`0` ems-cmd was successfully run to completion.
28
+
*`1` A fatal error occurred during command parsing or execution.
29
+
30
+
24
31
25
32
### Commands
26
33
@@ -114,20 +121,27 @@ Listing done
114
121
```
115
122
116
123
117
-
#### Download the file
124
+
#### Download file
118
125
This command will download one single file from server
119
126
120
127
If local file already exists, you will be prompted to overwrite it.
121
128
Notice, that when you are using a redirected output (e.g. to the file) and local file already exists, download will fail.
122
129
In any case, you may use parameter `/y` to overwrite existing file without any prompts.
123
130
131
+
132
+
Be careful with folders that contain spaces in their names. You should add quotation marks around such parameter values.
133
+
Keep in mind, that sequence `\"` will escape double quotes. So `"D:\"`, `"D:\another folder\"` are incorrect, use `D:\` and `"D:\another folder"` instead.
ems-cmd download http://192.168.100.200:6330 -space Default -target "D:\local\folder with spaces" -source "server\folder with spaces\file3.xml"
126
140
```
127
141
###### Parameters
128
142
*`-space` - space name, e.g. `Default`
129
-
*`-to` - destination folder (you local folder).
130
-
*`-from` - relative path to file in the space `-space`
143
+
*`-target` - destination folder (you local folder).
144
+
*`-source` - relative path to file in the space `-space`
131
145
*`/y` - overwrite existing file (silent agree)
132
146
133
147
###### Output
@@ -137,20 +151,28 @@ Operation completed
137
151
```
138
152
139
153
140
-
#### Upload the file
154
+
#### Upload file
141
155
This command will upload one single to server
142
156
143
157
If remote file already exists, you will be prompted to overwrite it.
144
158
Notice, that when you are using a redirected output (e.g. to the file) and remote file already exists, upload will fail.
145
159
In any case, you may use parameter `/y` to overwrite existing file without any prompts.
146
160
161
+
162
+
Be careful with folders that contain spaces in their names. You should add quotation marks around such parameter values.
163
+
Keep in mind, that sequence `\"` will escape double quotes. So `"D:\"`, `"D:\another folder\"` are incorrect, use `D:\` and `"D:\another folder"` instead.
0 commit comments