# REPOSITORY ADD

> Add repositories with the Unity Version Control CLI.

## Description

Connects an existing repository by adding its database.

### Usage

```bash
cm repository | repo add <db_file> <rep_name> <repserverspec>
```

### Options

| Option / Argument | Description                                                                                                                       |
| :---------------- | :-------------------------------------------------------------------------------------------------------------------------------- |
| db\_file          | The name of the database file on the database backend.                                                                            |
| rep\_name         | The name of the repository.                                                                                                       |
| repserverspec     | The repository server specification. (Use '**cm** **help** **objectspec**' to learn more about repository server specifications.) |

## Help

### Remarks

Reconnects an existing repository database to the server. This command is useful to move a repository from one server to another, or to restore an archived repository after using the '**cm** **repository** **delete**' command.

### Examples

```bash
cm repository add rep_27 myrepository myserver:8084
```
