gh api user/packages/container/myapp/versions --jq '.[].id'
List versions of a container package
Hits the package versions endpoint and prints each version ID, the handle used to delete or inspect individual image versions. Container images accumulate versions on every push. Combine with DELETE on the same endpoint to prune old images.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.