Skip to main content
Version: 1.1

oras manifest fetch

Fetch manifest of the target artifact

oras manifest fetch [flags] <name>{:<tag>|@<digest>}

Examples

Fetch raw manifest from a registry:

oras manifest fetch localhost:5000/hello:v1

Fetch the descriptor of a manifest from a registry:

oras manifest fetch --descriptor localhost:5000/hello:v1

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

Fetch manifest from a registry with certain platform:

oras manifest fetch --platform 'linux/arm/v5' localhost:5000/hello:v1

Fetch manifest from a registry with prettified json result:

oras manifest fetch --pretty localhost:5000/hello:v1

Fetch raw manifest from an OCI image layout folder 'layout-dir':

oras manifest fetch --oci-layout layout-dir:v1

Fetch raw manifest from an OCI layout archive file 'layout.tar':

oras manifest fetch --oci-layout layout.tar:v1

Options

      --ca-file string                              server certificate authority file for the remote registry
-d, --debug debug mode
--descriptor output the descriptor
-H, --header stringArray add custom headers to requests
-h, --help help for fetch
--insecure allow connections to SSL registry without certs
--media-type strings accepted media types
--oci-layout set target as an OCI image layout
-o, --output path file path to write the fetched manifest to, use - for stdout
-p, --password string registry password or identity token
--password-stdin read password or identity token from stdin
--plain-http allow insecure connections to registry without SSL check
--platform os[/arch][/variant][:os_version] request platform in the form of os[/arch][/variant][:os_version]
--pretty prettify JSON objects printed to stdout
--registry-config path path of the authentication file for registry
--resolve host:port:address[:address_port] customized DNS for registry, formatted in host:port:address[:address_port]
-u, --username string registry username
-v, --verbose verbose output