PrefectHQ
prefect
BlogDocsChangelog

Add CLI Command for Custom Deployments SDK

#20173
Comparing
custom-deployments-sdk-phase-5
(
8d76bd1
) with
custom-deployments-sdk-phase-4
(
8d5f01a
)
CodSpeed Performance Gauge
0%
Untouched
2
Ignored
6

Benchmarks

Passed

bench_task_decorator
benches/bench_tasks.py
CodSpeed Performance Gauge
0%
606.4 µs603.9 µs
bench_import_prefect_flow
benches/bench_import.py
CodSpeed Performance Gauge
0%
1.4 s1.4 s

Ignored

bench_task_submit
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
-42%
7.2 ms12.5 ms
bench_task_call
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
+5%
33.5 ms32 ms
bench_flow_call[options1]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
0%
107.7 ms107.7 ms
bench_flow_decorator
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
-7%
5.2 ms5.6 ms
bench_import_prefect
benches/bench_import.py
Ignored
CodSpeed Performance Gauge
0%
1.1 s1.1 s
bench_flow_call[options0]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
+4%
172.1 ms165.8 ms

Commits

Click on a commit to change the comparison range
Base
custom-deployments-sdk-phase-4
8d5f01a
+0.28%
Add CLI Command for Custom Deployment SDK (Phase 5) Adds `prefect sdk generate` command that generates a typed Python SDK from workspace deployments, enabling IDE autocomplete and static type checking. CLI features: - Required --output option for SDK file path - Optional --flow and --deployment filters (repeatable) - Progress indicator and success statistics - Clear error messages for auth, connection, and no-deployments cases - Pre-validation for directory-as-output with helpful message - Smart usage hint that detects invalid module names and suggests renaming Also includes: - 403 Forbidden detection in auth check (in addition to 401) - 19 CLI tests covering all functionality - Updated plan documentation Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
ff093d9
18 hours ago
by desertaxle
-0.08%
Mark SDK CLI as beta - Add (beta) indicator to sdk command group help - Add (beta) prefix to generate command description - Print beta notice when command runs Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
8d76bd1
6 hours ago
by desertaxle
© 2026 CodSpeed Technology
Home Terms Privacy Docs