docs/src/commands.md

Sat, 05 Aug 2017 10:12:12 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 05 Aug 2017 10:12:12 +0200
changeset 277
ccef3f2bfe8e
parent 266
8c44c5919691
child 278
c9096eb3554c
permissions
-rw-r--r--

adds more documentation details the three check commands

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.

Most commands have the **`-p`** and **`-c`** 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.

[1]: ./encryption.html

Aliases
-------

Some commands have alternate names. For example `dav ls` is the same as `dav list`. 

mercurial