Skip to main content

prefect sdk

Manage Prefect SDKs. (beta)

prefect sdk generate

(beta) Generate a typed Python SDK from workspace deployments.The generated SDK provides IDE autocomplete and type checking for your deployments. Requires an active Prefect API connection (use prefect cloud login or configure PREFECT_API_URL).

Options

Output file path for the generated SDK.
Filter to specific flow(s). Can be specified multiple times.
Filter to specific deployment(s). Can be specified multiple times. Use ‘flow-name/deployment-name’ format for exact matching.
Example: