Skip to content

imglife app

imglife app list [flags]
imglife app purge [flags]

Manages the usage records stored in the Package Registry — one per project, written by imglife scan --register.

Lists every scanned project with its worst status and image counts.

Flag Default Description
--detailed false Show every image with its kind, status and sources
--output string text Output format: text or json
--output-file string — Write output to a file
--project string — Filter records by project path (substring match)
Terminal window
# List all scanned projects
imglife app list
# Filter by project
imglife app list --project myteam/myservice
# Detailed view
imglife app list --detailed
# Export to file
imglife app list --output json --output-file records.json
PROJECT REF STATUS IMAGES UNMANAGED SCANNED AT
myteam/myservice 1.2.0 update 2 1 2026-10-29T10:00:00Z
myteam/api main ok 1 0 2026-10-28T16:42:00Z

STATUS is the worst status of the managed images, computed at scan time. IMAGES counts the managed images (base, mirror, applicative).

With --detailed:

PROJECT: myteam/myservice
REF: 1.2.0
REVISION: a3f8b1c
SCANNED AT: 2026-10-29T10:00:00Z
PRODUCES: registry.example.com/apps/myservice:1.2.0
CUSTOM: team=backend
IMAGE: base update registry.example.com/bases/alpine:3.21.3-core1.0.0 Dockerfile:2
IMAGE: mirror ok registry.example.com/mirrors/postgres:16.4 .gitlab-ci.yml:12
IMAGE: unmanaged - docker:26-dind .gitlab-ci.yml:51

Deletes the records of projects that were deleted from the forge. For each record, imglife asks GitLab or Gitea whether the project still exists, and deletes the record only when the forge answers not found (HTTP 404).

  • A project that is simply not scanned anymore — no new tag, no new pipeline — is kept: its record keeps protecting the tags it uses from cleanup.
  • Archived projects are kept: their images may still be deployed.
  • Projects whose lookup fails (401, network error) are kept and reported as ERROR.
Flag Default Description
--dry-run false Simulate without deleting
--force false Purge even when none of the checked projects is found on the forge
--project string — Limit to records whose project path contains this string
Terminal window
# Preview: show what would be purged
imglife app purge --dry-run
# Purge the records of deleted projects
imglife app purge
# Limit to one group
imglife app purge --project myteam/
Checking 4 record(s)...
KEEP myteam/myservice
KEEP myteam/legacy (archived)
ERROR myteam/other (check failed: 401 Unauthorized)
DELETE myteam/removed (project not found)
Purged 1 record(s).
Code Meaning
0 Success
1 Error