imglife config
Synopsis
Section titled “Synopsis”imglife config validate [flags]config groups subcommands that work with the configuration file without
executing any lifecycle command.
config validate
Section titled “config validate”Loads the configuration (--config / IMGLIFE_CONFIG / ./imglife.yaml),
checks its syntax and required fields, then prints a short summary of what is
configured. It performs no network calls and runs no lifecycle action.
It exits with status 0 when the configuration is valid, or 1 with the
validation error on stderr otherwise.
# Validate the default configimglife config validate
# Validate a specific fileimglife config validate --config path/to/imglife.yamlExample output for a valid file:
config: OK provider: gitlab sync entries: 3 build images: 2 eol provider: endoflife eol target: git notifications: slack=1 webhooks=0Relationship with --check
Section titled “Relationship with --check”imglife config validate is the discoverable, summarizing equivalent of the
global --check flag. Both load and
validate the configuration and return a non-zero exit code on failure; use
whichever fits your workflow:
imglife --check— terseconfig: OK/config: INVALID, ideal in pre-commit hooks and CI gates.imglife config validate— same validation plus a readable summary of the resolved configuration.