Trigger list command reference
Find the options and arguments you can use to list triggers from the Unity Version Control command line.
Read time 2 minutesLast updated 5 days ago
The command lists the triggers of a given type on a server.
cm trigger listUsage
cm trigger | tr list | ls [<subtype-type>] [--server=<repserverspec>] [--format=<str_format>]
cm trcm triggerlslistOptions and arguments
The command accepts the following options and arguments:
cm trigger listOption or argument | Required | Description |
|---|---|---|
| No | Trigger execution and trigger operation. If you don't specify a type, the command lists all triggers on the server. To see a list of trigger types, run |
| No | Lists the triggers on the specified server. If you don't specify a server, the command runs on the server that the client is configured to use. To learn more about server specifications, run |
| No | Retrieves the output message in a specific format. For more information, refer to Remarks. |
Remarks
Output format parameters
Use the option to set how each trigger appears in the output.
--formatThe following table lists the parameters you can use in a format string:
Parameter | Description |
|---|---|
| Trigger position. |
| Trigger name. |
| Trigger path. |
| Trigger owner. |
| Trigger type. |
| Trigger filter. |
Example commands to list triggers
List all triggers of type on the server that the client is configured to use:
after-mklabelcm trigger list after-mklabel
List all triggers of type on the server :
before-mkbranchmyserver:8084cm tr ls before-mkbranch --server=myserver:8084
List the position and name of each trigger:
after-mklabelcm trigger list after-mklabel --format="{0} {1}"