Skip to content

imglife config

imglife config validate [flags]

config groups subcommands that work with the configuration file without executing any lifecycle command.

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.

Terminal window
# Validate the default config
imglife config validate
# Validate a specific file
imglife config validate --config path/to/imglife.yaml

Example 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=0

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 — terse config: OK / config: INVALID, ideal in pre-commit hooks and CI gates.
  • imglife config validate — same validation plus a readable summary of the resolved configuration.