<@ULVA73B9P> Is there any way to show the deployme...
# ask-marvin
r
@Marvin Is there any way to show the deployment version in the localhost/deployments view?
m
thought for 124.2 seconds
Not in that list view, no. In Prefect 3.x, the
/deployments
page has a fixed set of columns, and deployment version is not one of them. There also isn’t a built-in way to customize that table to add a
version
column. What is available: - Deployment detail page: version is shown there for an individual deployment - CLI: you can inspect versions from the terminal - API: the deployment object includes a
version
field Useful workarounds:
Copy code
bash
prefect deployment ls --output json
and for a single deployment:
Copy code
bash
prefect deployment inspect "my-flow/my-deployment"
I verified those CLI commands exist. So the practical answer is: - No for showing version directly in
<http://localhost:4200/deployments>
- Yes for viewing it on each deployment’s detail page or via CLI/API Relevant docs: - Deployments concept docs - Deployment CLI docs If you want, I can also show you a quick script or
jq
command to print a neat table of deployment names + versions from
prefect deployment ls --output json
.
r
No I just wanted to be able to glance at it. Preferably including some key detail (image/tag) and marking outdated versions if we're allowed to dream. Is there a feature request like this?
^ @Marvin
m
thought for 11.4 seconds
Here’s a simple version:
Copy code
bash
prefect deployment ls --output json | jq -r '.[] | [.name, .version] | @tsv'
Or with headers:
Copy code
bash
echo -e "DEPLOYMENT\tVERSION"
prefect deployment ls --output json | jq -r '.[] | [.name, .version] | @tsv'
If you want
flow/deployment
formatting:
Copy code
bash
prefect deployment ls --output json | jq -r '.[] | ["\(.flow_name)/\(.name)", .version] | @tsv'
If
jq
isn’t installed, I can give you a pure Python one-liner instead.
r
@Marvin No I just wanted to be able to glance at it in the UI. Preferably including some key detail (image/tag) and marking outdated versions if we're allowed to dream. Is there a feature request like this?
m
thought for 9.2 seconds
I couldn’t find an existing feature request that clearly matches “show deployment version/image tag in the deployments list and flag outdated ones.” What I found: - No matching GitHub discussions - No clearly related GitHub issue for the UI enhancement you described So as far as I can tell, this specific request may not be filed yet. A few notes: - The UI does already have the data model pieces needed for part of this: deployments have a
version
, and deployment/job config can include image details. - But there’s currently no built-in deployments table support for: - showing
version
- showing image/tag - comparing “current” vs “outdated” - highlighting stale deployments in the list If you want, this is a good candidate for a GitHub feature request. A concise request could ask for: - optional columns in
/deployments
for: - deployment version - image / image tag - last updated - visual stale/outdated indicator, for example: - deployment version differs from latest deployed version for that flow - image tag differs from latest image used in the work pool/deployment - deployment code or infra metadata changed since last successful run - column customization / saved table views You can open one here: - Create a Prefect issue If you want, I can help draft a strong feature request you can paste directly into GitHub.