1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-06 15:46:57 +01:00
Files
openshift-docs/modules/kn-trigger-list.adoc
2022-08-04 14:38:35 +00:00

40 lines
1007 B
Plaintext

// Module included in the following assemblies:
//
// * /serverless/develop/serverless-triggers.adoc
:_content-type: PROCEDURE
[id="kn-trigger-list_{context}"]
= Listing triggers by using the Knative CLI
Using the Knative (`kn`) CLI to list triggers provides a streamlined and intuitive user interface. You can use the `kn trigger list` command to list existing triggers in your cluster.
.Prerequisites
* The {ServerlessOperatorName} and Knative Eventing are installed on your {product-title} cluster.
* You have installed the Knative (`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?