Lingam Rajesh
12/03/2025, 2:42 PMMarvin
12/03/2025, 2:42 PMMarvin
12/03/2025, 2:46 PMprefect config set PREFECT_API_URL="<https://api.prefect.cloud/api/accounts/<ACCOUNT_ID>/workspaces/<WORKSPACE_ID>>"
prefect config set PREFECT_API_KEY="<USER_API_KEY>"
# Trigger a deployment
prefect deployment run "<FLOW_NAME>/<DEPLOYMENT_NAME>" --param key=value --watch
Python SDK example:
from prefect.deployments import run_deployment
flow_run = run_deployment(
name="my-flow/my-deployment",
parameters={"my_param": 42}
)
Docs:
- Workspace roles (Runner)
- API keys
- Connect to Cloud
- Run deployments
If you’d like, share a deployment name and I can help you test the end-to-end trigger from a laptop.