docs/src/getting-started.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: 'Getting started'
---

### Test

After successful installation you can test dav with your WebDAV server.

	dav list http://example.com/webdav/

This lists all child resources of the specified collection. If you are unfamiliar to WebDAV terminology this means basically listing all files in a directory, similar to the ls unix tool. Actually you can also write `dav ls` instead of `dav list` and there is also an `-l` option similarly to the unix tool `ls`.

### Create a repository

All dav commands are expecting an url argument, but it may be a bit cumbersome to type a full url every time. But you can configure a repository in the dav configuration file ($HOME/.dav/config.xml) with the servers url, optional authentication information and other options. Afterwards you can access a webdav server just with the repository name and an optional path.

So when you have created a repository with the name myserv and the url http://example.com/webdav/, you can just type

	dav list myserv

You can add a path to the repository name to access an other url

	dav list myserv/mycollection/

This lists the content of http://example.com/webdav/mycollection/

The easiest way to create a repository is with the add-repository command. This is a simple configuration assistant.

	$ dav add-repository
	Each repository must have an unique name.
	name: myserv

	Specify the repository base url.
	url: http://example.com/webdav/

	User for HTTP authentication.
	user (optional): myuser
	password (optional): 


	Added repository: myserv (http://example.com/webdav/)

You can also configure the config.xml yourself, check out [the config.xml spec][1].

[1]: ./configuration.html

mercurial