REPOSITORY LIST
List repositories with the Unity Version Control CLI.
Read time 1 minuteLast updated 21 days ago
Description
Lists the repositories on a server.Usage
cm repository | repo [list | ls] [<repserverspec>] [--format=<str_format>]
Options
Option / Argument | Description |
|---|---|
| repserverspec | Repository server specification. (Use 'cm help objectspec' to learn more about rep server specs.) |
| --format | Retrieves the output message in a specific format. See Remarks for more info. |
Help
Remarks
Output format parameters (--format option)
This command accepts a format string to show the output.The output parameters of this command are the following
Option / Argument | Description |
|---|---|
| Repository identifier. |
| Repository name. |
| Server name. |
| Repository owner. |
| Unique identifier of the repository. |
| Inserts a tab space. |
| Inserts a new line. |
{repid}{repname}{repserver}Examples
(Lists all repositories.)cm repository
(Writes the repository name in 20 spaces, aligned to left, then a blank, and then the repository owner.)cm repository list localhost:8084 --format="{1, -20} {3}"
(Writes the same as the previous example.)cm repository ls localhost:8084 --format="{repname, -20} {repowner}"
(Writes the list of repositories using a table format with the following fields: repository id, repository name, and repository server name.)cm repo ls localhost:8084 --format=TABLE