Skip to content

Add --quiet to podman artifact ls - #29530

Open
umar11b wants to merge 1 commit into
podman-container-tools:mainfrom
umar11b:artifact-ls-quiet
Open

Add --quiet to podman artifact ls#29530
umar11b wants to merge 1 commit into
podman-container-tools:mainfrom
umar11b:artifact-ls-quiet

Conversation

@umar11b

@umar11b umar11b commented Aug 15, 2026

Copy link
Copy Markdown

Problem: Right now there's no clean way to get just artifact IDs (The Digest hashcodes) out of podman artifact ls. You end up either parsing the table or reaching for --format {{.Digest}}, which is inefficient for scripting. The other list commands (images, ps, artifact push/pull) all have -q/--quiet already pre-existing.

Impact: users can now run podman artifact ls --quiet to get one digest per line (the unique hashcode), no header, suitable for piping into other podman commands.

Change: adds a --quiet/-q bool flag to the list command. When set (and --format is not also given), output.Digest is printed for each artifact instead of the table.

Checklist

Ensure you have completed the following checklist for your pull request to be reviewed:

  • I have read and understood our contributing guidelines and will not have more than two open PRs as a new contributor.
  • PR description, commit message, and GitHub comments are human-written, per LLM Policy
  • Certify you wrote the patch or otherwise have the right to pass it on as an open-source patch by signing all commits. (git commit -s). (If needed, use git commit -s --amend). The author email must match the sign-off email address. See CONTRIBUTING.md for more information.
  • Referenced issues using Fixes: #00000 in commit message (if applicable)
  • Tests have been added/updated (or no tests are needed)
  • Documentation has been updated (or no documentation changes are needed)
  • All commits pass make validatepr (format/lint checks)
  • Release note entered in the section below (or None if no user-facing changes)

Does this PR introduce a user-facing change?

image
Add `--quiet`/`-q` to `podman artifact ls` to print only artifact digests.

Problem: podman artifact ls has no way to print just artifact
identifiers. Scripts that want to act on artifacts (e.g. remove them)
have to parse table output or use --format {{.Digest}}. Every other
listing command in podman (images, ps, artifact push/pull) already
supports -q/--quiet for this.

Impact: users can now run `podman artifact ls --quiet` to get one
digest per line, no header, suitable for piping into other podman
commands.

Change: adds a --quiet/-q bool flag to the list command. When set (and
--format is not also given), output.Digest is printed for each
artifact instead of the table.

Signed-off-by: umar11b <uzaman2018@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant