imglife app
Synopsis
Section titled “Synopsis”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.
app list
Section titled “app list”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) |
Examples
Section titled “Examples”# List all scanned projectsimglife app list
# Filter by projectimglife app list --project myteam/myservice
# Detailed viewimglife app list --detailed
# Export to fileimglife app list --output json --output-file records.jsonSample output
Section titled “Sample output”PROJECT REF STATUS IMAGES UNMANAGED SCANNED ATmyteam/myservice 1.2.0 update 2 1 2026-10-29T10:00:00Zmyteam/api main ok 1 0 2026-10-28T16:42:00ZSTATUS 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:51app purge
Section titled “app purge”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 |
Examples
Section titled “Examples”# Preview: show what would be purgedimglife app purge --dry-run
# Purge the records of deleted projectsimglife app purge
# Limit to one groupimglife app purge --project myteam/Sample output
Section titled “Sample output”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).Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 |
Success |
1 |
Error |