|
1 --- |
|
2 title: 'dav edit' |
|
3 --- |
|
4 |
|
5 **`dav edit [-pc] [-k <key>] [-V <version>] <url>`** |
|
6 |
|
7 Downloads a resources and opens an editor. If there is no resource at the |
|
8 specified location, it is attempted to create a fresh resource. |
|
9 The resource is downloaded to a temporary file and re-uploaded only if you save |
|
10 any changes to that file. |
|
11 |
|
12 The default editor `vi` can be changed with the `EDITOR` environment variable. |
|
13 |
|
14 This command transparently handles decryption and encryption. If you download |
|
15 and open a plain text file and request content encryption (either by config or |
|
16 by command line option) the file will be re-uploaded with content encryption. |
|
17 However, a present file will keep its (plain text) file name in any case. |
|
18 |
|
19 **`-p`** disable file name encryption and decryption |
|
20 |
|
21 **`-c`** enable file name and content encryption |
|
22 |
|
23 **`-k <key>`** use the specified key for encryption. The key must be configured in |
|
24 the config.xml file |
|
25 |
|
26 **`-V <version>`** downloads a specific version of the resource. Available versions can be listed with the *list-versions* command |
|
27 |
|
28 |