1 ---
2 title: 'dav add-repository'
3 ---
4
5 This command runs an interactive assistant that creates a repository [configuration][1] and adds it to the config.xml file.
6
7 [1]: ./configuration.html
8
9 **Command alias:** add-repo
10
11 The assistant firstly asks for a unique repository name.
12 If you are not sure, which names are already in use, you can get a list of currently present repositories with [dav list-repositories][2].
13 Then you specifiy the base URL and optional authentication information.
14 Please keep in mind, that the password is stored base64 encoded in your configuration.
15 If you do not want this to happen, leave the password blank.
16 `dav` will ask you for the password when accessing the repository.
17 Beware that you don't use password prompt in background jobs, though.
18 A call of `add-repository` may look like this.
19
20 $ dav add-repository
21 Each repository must have an unique name.
22 name: myfirstrepo
23
24 Specify the repository base url.
25 url: https://mynas.local/webdav
26
27 User for HTTP authentication.
28 user (optional): mywebuser
29 password (optional):
30
31 [2]: ./list-repositories.html
32
33