prefect.cli
events
Events command — native cyclopts implementation. Stream and emit events.
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
prefect.cli.eventsstream stream()
emit emit(event: str)
# 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"}'
Was this page helpful?