Skip to main content

prefect event

Stream events.

prefect event stream

Subscribes to the event stream of a workspace, printing each event as it is received. By default, events are printed as JSON, but can be printed as text by passing --format text.

Options

--format
Output format (json or text)
--output-file
File to write events to
--account
Stream events for entire account, including audit logs
--run-once
Stream only one event

prefect event emit

Emit a single event to Prefect.

Arguments

EVENT
string
required
The name of the event [required]

Options

--resource
Resource specification as ‘key=value’ or JSON. Can be used multiple times.
--resource-id
The resource ID (shorthand for —resource prefect.resource.id=<id>)
Related resources as JSON string
--payload
Event payload as JSON string
Example: