docs/src/commands.md

Sun, 09 Jul 2017 20:15:14 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 09 Jul 2017 20:15:14 +0200
changeset 265
ee9e63c437c4
child 266
8c44c5919691
permissions
-rw-r--r--

adds documentation for most dav commands

copy, move and configuration commands still missing

Commands
========

Overview
--------

List resources:

	dav list <url>

Download resource:

	dav get <url>

Download all resources from a collection:

	dav get -R <url>

Upload a file:

	dav put <url> <file>

Upload all files from a directory:

	dav put -R <url> <dir>

Duplicate a resource or a collection on a server:

	dav copy <src-url> <dst-url>

There is also a move operation similar to copy:

	dav move <src-url> <dst-url>

These are the most common commands. There are also more commands for webdav locking and manipulating webdav properties.

Common options
--------------

**`-N`** disable any authentication prompt. If authentication is required, dav will abort.

**`-i`** disable TLS certificate verification

**`-v`** enable verbose output. Internally `CURLOPT_VERBOSE` is set to 1 and verbose output is printed on stderr.

mercurial