This is a cache of https://docs.openshift.com/serverless/1.30/eventing/triggers/list-triggers-cli.html. It is a snapshot of the page at 2024-11-25T17:03:50.373+0000.
List triggers from the command line - Triggers | Eventing | Red Hat OpenShift Serverless 1.30
×

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