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>