Skip to main content
Version: 1.1.0

blobber cat

Output a file from an OCI image to stdout.

Synopsis​

blobber cat <reference> <path> [flags]

Description​

Streams the contents of a single file from an OCI registry image to stdout. Uses eStargz format to download only the requested file, not the entire image.

Arguments​

ArgumentRequiredDescription
referenceYesOCI image reference (e.g., ghcr.io/org/repo:tag)
pathYesPath to the file within the image

Flags​

FlagTypeDefaultDescription
--insecureboolfalseAllow connections without TLS
-v, --verboseboolfalseEnable debug logging

Output​

Raw file contents to stdout. No additional formatting or newlines are added.

Exit Codes​

CodeDescription
0Success
1Error (image not found, file not found, auth failed)

Examples​

View a file:

blobber cat ghcr.io/myorg/config:v1 app.yaml

View a nested file:

blobber cat ghcr.io/myorg/config:v1 config/database.yaml

Save to a local file:

blobber cat ghcr.io/myorg/config:v1 app.yaml > app.yaml

Pipe to another command:

blobber cat ghcr.io/myorg/config:v1 config.json | jq .

Notes​

  • Path must match exactly as shown in blobber ls
  • Binary files are output as-is
  • No trailing newline is added

See Also​