Skip to main content
Version: v5.7.0

opschain triggers list

triggers

opschain triggers list <project> [--wide]

Lists a project's triggers as a table: CODE, SUBJECT, EVENTS (comma-joined), SCOPE (- when the trigger is project-wide) and ENABLED. --wide adds the DESCRIPTION column. An empty project prints no triggers. -o json|yaml prints the full trigger documents instead — including the fields the table omits (conditions, action type and params, throttle, run-as identity, timestamps).

Needs a server target (--server <url>, OPSCHAIN_SERVER, or the active context).

Flags​

FlagMeaning
--wideAdd the description column.
--filter <column>[!]=<value>Keep only rows matching the term (repeatable; terms AND). Columns are the printed table headers lowercased (spaces/dashes fold to _); * wildcards match the whole cell case-insensitively, != negates, commas mean any-of. Applied client-side. Grammar: opschain docs cli.

Exit codes​

CodeMeaning
0Listing printed (an empty listing is still success).
1The listing failed (server unreachable, project unknown).
2Usage error — no server target.

Examples​

opschain triggers list demo
CODE SUBJECT EVENTS SCOPE ENABLED
promote_on_success change finished /projects/demo/environments/dev true

See also​

  • opschain docs cli/triggers-show — one trigger in full, with its newest firings.
  • opschain docs cli/triggers-create.