> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

#  

# `prefect sdk`

```command theme={null}
prefect sdk [OPTIONS] COMMAND [ARGS]...
```

> [!NOTE]
>
> Manage Prefect SDKs. (beta)

## `prefect sdk generate`

```command theme={null}
prefect sdk generate [OPTIONS]
```

> [!NOTE]
>
> (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**
>
> Output file path for the generated SDK.
>
> **--flow**
>
> Filter to specific flow(s). Can be specified multiple times.
>
> **--deployment**
>
> Filter to specific deployment(s). Can be specified multiple times. Use 'flow-name/deployment-name' format for exact matching.

> [!NOTE]
>
> **Example:**
>
> ```bash theme={null}
> $ prefect sdk generate --output ./my_sdk.py
> $ prefect sdk generate --output ./my_sdk.py --flow my-etl-flow
> $ prefect sdk generate --output ./my_sdk.py --deployment my-flow/production
> ```
