Documentation

Support

Unity Version Control

TRIGGER LIST

List triggers with the Unity Version Control CLI.
Read time 1 minuteLast updated 8 days ago

Description

Lists the triggers of a given type on a server.

Usage

cm trigger | tr list | ls [<subtype-type>] [--server=<repserverspec>] [--format=<str_format>]

Options

Option / Argument

Description

--serverLists the triggers on the specified server. If no server is specified, executes the command on the one configured on the client. (Use 'cm help objectspec' to learn more about server specs.)
--formatRetrieves the output message in a specific format. See Remarks for more info.
subtype-typeTrigger execution and trigger operation. (Use 'cm showtriggertypes' to see a list of trigger types.)

Help

Remarks

If the type is not specified, lists all the triggers on the server.

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

0Trigger position.
1Trigger name.
2Trigger path.
3Trigger owner.
4Trigger type.
5Trigger filter.

Examples

cm trigger list after-mklabel
(Lists all triggers of type 'after-mklabel' on the server configured on the client.)
cm tr ls before-mkbranch --server=myserver:8084
(Lists all triggers of type 'before-mkbranch' on server 'myserver:8084'.)