AnthonyC
02/20/2026, 4:47 PMMarvin
02/20/2026, 4:48 PMMarvin
02/20/2026, 4:53 PMprefect deployment inspect "flow-name/deployment-name"
- List deployments (JSON output makes it easy to see the version field):
prefect deployment ls -o json
- Python client
from prefect.client.orchestration import get_client
async def show_version():
async with get_client() as client:
dep = await client.read_deployment_by_name("flow-name/deployment-name")
print(dep.version) # user-supplied version string (if set)
# In Cloud you’ll also see:
# dep.version_id, dep.version_info
If you want, tell me your deployment name and I can share the exact CLI/API call tailored to it.