1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/kn-trigger-list.adoc

35 lines
752 B
Plaintext

[id="kn-trigger-list_{context}"]
= Listing triggers by using the Knative CLI
The `kn trigger list` command prints a list of available triggers.
.Prerequisites
* The {ServerlessOperatorName} and Knative Eventing are installed on your {product-title} cluster.
* You have installed the `kn` CLI.
.Procedure
. Print a list of available triggers:
+
[source,terminal]
----
$ kn trigger list
----
+
.Example output
[source,terminal]
----
NAME BROKER SINK AGE CONDITIONS READY REASON
email default ksvc:edisplay 4s 5 OK / 5 True
ping default ksvc:edisplay 32s 5 OK / 5 True
----
. Optional: Print a list of triggers in JSON format:
+
[source,terminal]
----
$ kn trigger list -o json
----
//example output?