This is a cache of https://docs.openshift.com/container-platform/4.9/serverless/eventing/triggers/list-triggers-cli.html. It is a snapshot of the page at 2024-11-25T19:46:38.774+0000.
List triggers from the command line - Eventing | Serverless | OpenShift Container Platform 4.9
×

Using the Knative (kn) cli to list triggers provides a streamlined and intuitive user interface.

Listing triggers by using the Knative cli

You can use the kn trigger list command to list existing triggers in your cluster.

Prerequisites
  • The OpenShift Serverless Operator and Knative Eventing are installed on your OpenShift Container Platform cluster.

  • You have installed the Knative (kn) cli.

Procedure
  1. Print a list of available triggers:

    $ kn trigger list
    Example output
    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
  2. Optional: Print a list of triggers in JSON format:

    $ kn trigger list -o json