chainctl
chainctl Chainguard Control
For the complete documentation index, see llms.txt.
Find Chainguard replacements for the images your Dockerfiles build on.
Find Chainguard replacements for the images your Dockerfiles build on.
Reads the FROM instructions of every Dockerfile under DIR (default: the current directory) and reports, for each upstream image, whether Chainguard publishes a hardened replacement and whether your organization can pull it today.
Your immutability choice stays as you wrote it: a digest-pinned reference comes back digest-pinned. A maintained tag is kept, a variant or older patch resolves to its maintained version line when possible, and an untagged reference is made explicit as latest, which is what Docker already uses. When no requested version is maintained, the suggestion falls back to a maintained latest tag. An image you are not yet entitled to is named with a tag because its digest cannot be resolved until it is in your catalog.
Every reference is listed, with what you can do about it: pull the replacement today, ask for entitlement, nothing (you are already on Chainguard), or nothing to move to. What has no replacement is as much of the answer as what does.
chainctl images discover [DIR] chainctl images discover
chainctl images discover ./services
chainctl images discover --parent my-org
chainctl images discover -o json --parent string Name or UIDP of the organization whose entitlements to check. Defaults to the default.group config value (env: CHAINGUARD_DEFAULT_GROUP). --api string The url of the Chainguard platform API. (default "https://console-api.enforce.dev")
--audience string The Chainguard token audience to request. (default "https://console-api.enforce.dev")
--config string A specific chainctl config file. Uses CHAINCTL_CONFIG environment variable if a file is not passed explicitly.
--console string The url of the Chainguard platform Console. (default "https://console.chainguard.dev")
--force-color Force color output even when stdout is not a TTY.
-h, --help Help for chainctl
--issuer string The url of the Chainguard STS endpoint. (default "https://issuer.enforce.dev")
--log-level string Set the log level (debug, info) (default "ERROR")
-o, --output string Output format. One of: [csv, env, go-template, id, json, markdown, none, table, terse, tree, wide]
-v, --v int Set the log verbosity level.Last updated: 2026-08-31 17:17