UNIXworkcode

1 --- 2 title: 'Commands' 3 --- 4 5 Overview 6 -------- 7 8 List resources: 9 10 dav list <url> 11 12 Download resource: 13 14 dav get <url> 15 16 Download all resources from a collection: 17 18 dav get -R <url> 19 20 Upload a file: 21 22 dav put <url> <file> 23 24 Upload all files from a directory: 25 26 dav put -R <url> <dir> 27 28 Duplicate a resource or a collection on a server: 29 30 dav copy <src-url> <dst-url> 31 32 There is also a move operation similar to copy: 33 34 dav move <src-url> <dst-url> 35 36 These are the most common commands. 37 There are also more commands, e.g. for webdav locking or manipulating webdav properties. 38 See the left menu for a complete list. 39 40 Common options 41 -------------- 42 43 **`-N`** disable any authentication prompt. If authentication is required, dav will abort. 44 45 **`-i`** disable TLS certificate verification 46 47 **`-v`** enable verbose output. Internally `CURLOPT_VERBOSE` is set to 1 and verbose output is printed to stderr. 48 49 Most commands have the **`-c`** and **`-p`** options for enabling or disabling encryption. If encryption is not configured for a repository, but the **`-c`** option is specified, encryption/decryption is enabled. When enabled, all commands handle encrypted resource names. The **`-p`** options disables any encryption/decryption. See [encryption][1] for details. 50 51 [1]: ./encryption.html 52 53 Aliases 54 ------- 55 56 Some commands have alternate names. For example `dav ls` is an alias for `dav list`. 57 The available aliases can be found in the documentation for the respective commands. 58 59