<@ULVA73B9P> If you’re on the self-hosted version ...
# ask-marvin
j
@Marvin If you’re on the self-hosted version of Prefect, how do you trigger flows outside of Python land?
m
To provide you with the most accurate information on how to trigger flows outside of Python in a self-hosted version of Prefect, I need to determine the Prefect version you're using. Could you please confirm whether you're using Prefect 2.x or 3.x?
j
3.0
@Marvin 3.0
m
For Prefect 3.0 on a self-hosted setup, you can trigger flows outside of Python using the Prefect CLI or through custom triggers. 1. Prefect CLI: You can trigger a flow run using the Prefect CLI command:
Copy code
prefect deployment run 'your-flow-name/your-deployment-name'
This command allows you to trigger a flow run from the command line, integrating with other systems that can execute shell commands. 2. Custom Triggers: Prefect 3.0 supports creating custom triggers based on events. While the documentation focuses on triggers related to flow events, the concept can be extended to integrate with other event-driven systems or even create custom integrations. For more information, you can explore the official Prefect documentation on custom triggers. These approaches allow you to trigger flows in a self-hosted Prefect deployment without direct Python code execution, providing flexibility for various integration needs.