Skip to main content

diagrid listen

Establish a local app connection from an App ID to your terminal to stream incoming requests

Description

Establish a local app connection from an App ID to your terminal. Receive all requests sent to the connected App ID without deploying application code.

diagrid listen [flags]

Examples


# Configure an App ID pub/sub subscriber to stream incoming messages to the terminal
diagrid listen --app-id my-appid --subscription 'my-subscription'

# Configure an App ID to stream invocation requests made to a set list of app methods to the terminal
diagrid listen --app-id my-appid --invoke 'my-test-method-1,my-test-method-2'

# Configure an App ID to stream input binding events received to the terminal
diagrid listen --app-id my-appid --binding 'my-input-binding-1'

Options

  -a, --app-id string          [Required]: App ID to connect to terminal
-p, --project string Name of existing project
--subscription strings Target pub/sub topic subscriptions on which to listen for messages
--binding strings Input binding triggers to listen for and stream to local terminal
--invoke strings One or more methods on which to listen for inbound invocation requests. Append '!' to the method name to return an error
--raw Show raw request output for additional details
-h, --help help for listen