Documentation

Support

Unity Version Control

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

repserverspecRepository server specification. (Use 'cm help objectspec' to learn more about rep server specs.)
--formatRetrieves 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

{repid}
|
{0}
Repository identifier.
{repname}
|
{1}
Repository name.
{repserver}
|
{2}
Server name.
{repowner}
|
{3}
Repository owner.
{repguid}
|
{4}
Unique identifier of the repository.
{tab}
Inserts a tab space.
{newline}
Inserts a new line.
If the format parameter value is 'TABLE', the output will be printed using a table format with the
{repid}
,
{repname}
and
{repserver}
fields.

Examples

cm repository
(Lists all repositories.)
cm repository list localhost:8084 --format="{1, -20} {3}"
(Writes the repository name in 20 spaces, aligned to left, then a blank, and then the repository owner.)
cm repository ls localhost:8084 --format="{repname, -20} {repowner}"
(Writes the same as the previous example.)
cm repo ls localhost:8084 --format=TABLE
(Writes the list of repositories using a table format with the following fields: repository id, repository name, and repository server name.)