WORKSPACE LIST
List workspaces with the Unity Version Control CLI.
Read time 1 minuteLast updated 21 days ago
Description
Lists workspaces.Usage
cm workspace | wk [list | ls] [--format=<str_format>]
Options
Option / Argument | Description |
|---|---|
| --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 |
|---|---|
| Workspace name. |
| Client machine name. |
| Workspace path. |
| Workspace unique identifier. |
| Workspace specification using the format: 'wkname@machine'. |
| Inserts a tab space. |
| Inserts a new line. |
Examples
(Lists all workspaces.)cm wk
cm workspace list --format={0}#{3,40}
(Lists all workspaces and shows the workspace name, a # symbol and the workspace GUID field in 40 spaces, aligned to left.)cm workspace list --format={wkname}#{wkid,40}
cm wk --format="Workspace {0} in path {2}"
(Lists all workspaces and shows result as formatted strings.)cm wk --format="Workspace {wkname} in path {path}"