prefect event
prefect event [OPTIONS] COMMAND [ARGS]...
prefect event stream
prefect event stream [OPTIONS]
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.
Output format (json or text)
Stream events for entire account, including audit logs
prefect event emit
prefect event emit [OPTIONS] EVENT
Emit a single event to Prefect.
The name of the event [required]
Resource specification as ‘key=value’ or JSON. Can be used multiple times.
The resource ID (shorthand for —resource prefect.resource.id=<id>)
Related resources as JSON string
Event payload as JSON string
Example: # Simple event with resource ID
prefect event emit user.logged_in --resource-id user-123
# Event with payload
prefect event emit order.shipped --resource-id order-456 --payload '{"tracking": "ABC123"}'
# Event with full resource specification
prefect event emit customer.subscribed --resource '{"prefect.resource.id": "customer-789", "prefect.resource.name": "ACME Corp"}'