From 061344b00a8a2862786a3a51c9102331fa1886bc Mon Sep 17 00:00:00 2001 From: Terry Howe Date: Thu, 1 Aug 2024 12:19:17 -0600 Subject: [PATCH] feature: Add manifest fetch documentation for digest (#1465) Signed-off-by: Terry Howe --- cmd/oras/root/manifest/fetch.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/oras/root/manifest/fetch.go b/cmd/oras/root/manifest/fetch.go index d1755dd66..5fac3e1cf 100644 --- a/cmd/oras/root/manifest/fetch.go +++ b/cmd/oras/root/manifest/fetch.go @@ -55,6 +55,9 @@ Example - Fetch raw manifest from a registry: Example - Fetch the descriptor of a manifest from a registry: oras manifest fetch --descriptor localhost:5000/hello:v1 +Example - Fetch the manifest digest from a registry: + oras manifest fetch --format go-template --template '{{ .digest }}' localhost:5000/hello:v1 + Example - Fetch manifest from a registry with specified media type: oras manifest fetch --media-type 'application/vnd.oci.image.manifest.v1+json' localhost:5000/hello:v1