docs/src/commands.md

Sun, 17 Dec 2023 14:25:34 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 17 Dec 2023 14:25:34 +0100
changeset 797
edbb20b1438d
parent 283
0e36bb75a732
permissions
-rw-r--r--

[Makefile] fix missing rules preventing dry-runs

We have to support dry-runs, because many IDEs are using
dry-runs to collect build information.

Some rules have dependencies that expect certain files or
directories to be just present. We added respective build
rules which invoke the test program. This way, the behavior
when running make normally is exactly the same, but dry-runs
are also not failing now.

---
title: '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, e.g. for webdav locking or manipulating webdav properties.
See the left menu for a complete list.

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 to stderr.

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.

[1]: ./encryption.html

Aliases
-------

Some commands have alternate names. For example `dav ls` is an alias for `dav list`.
The available aliases can be found in the documentation for the respective commands.

mercurial