Documentation

Unity Version Control

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
cm trigger list
command lists the triggers of a given type on a server.

Usage

cm trigger | tr list | ls [<subtype-type>] [--server=<repserverspec>] [--format=<str_format>]
cm tr
is an alias of
cm trigger
, and
ls
is an alias of
list
.

Options and arguments

The
cm trigger list
command accepts the following options and arguments:

Option or argument

Required

Description

subtype-type
NoTrigger 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
cm trigger showtypes
.
--server
NoLists 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
cm help objectspec
.
--format
NoRetrieves the output message in a specific format. For more information, refer to Remarks.

Remarks

Output format parameters

Use the
--format
option to set how each trigger appears in the output.
The following table lists the parameters you can use in a format string:

Parameter

Description

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

Example commands to list triggers

List all triggers of type
after-mklabel
on the server that the client is configured to use:
cm trigger list after-mklabel
List all triggers of type
before-mkbranch
on the server
myserver:8084
:
cm tr ls before-mkbranch --server=myserver:8084
List the position and name of each
after-mklabel
trigger:
cm trigger list after-mklabel --format="{0} {1}"

Additional resources