David Salgado
02/14/2025, 7:34 AMMarvin
02/14/2025, 7:35 AMbash
prefect cloud webhook create your-webhook-name \
--description "Receives webhooks from your system" \
--template '{ "event": "your.event.name", "resource": { "prefect.resource.id": "your.resource.id" } }'
This command will create a webhook with a specified name, description, and template. The template defines how incoming web requests are translated into Prefect events.
For more details, you can refer to the Prefect Webhooks Guide.
If you need to interact with webhooks programmatically, you might consider using the Prefect Cloud API endpoints, but this would require additional setup for API authentication and requests.David Salgado
02/14/2025, 7:49 AMprefect cloud webhook ls
, the text output is not wrapped?Marvin
02/14/2025, 7:50 AMprefect cloud webhook ls
command output. Typically, text wrapping is controlled by your terminal settings rather than the command itself. You might try adjusting your terminal's width or using a terminal that supports horizontal scrolling to improve readability.
If this is a significant issue, you could consider redirecting the output to a file or using a tool like less
or more
to view it without wrapping:
bash
prefect cloud webhook ls | less
If you believe this functionality would be beneficial, you might consider submitting a feature request to the Prefect GitHub repository.