SwarmOps
ReferenceCommandsswarmops blob get

Page kind: Reference

swarmops blob get#

Describes v0.11.0Last changed View as Markdown

Print the blobs the IDs name, each with its size and content as cat gives a file's.

Metadata
Group
read
Since
0.3.0
Mutates
no
Identity required
no
MCP tool
none
Envelope op
blob_get
Exit codes
0
Errors
none

Syntax#

Syntax
swarmops blob get [OPTIONS] <ID>...

Required arguments#

Syntax: <ID>.

Blob ids, 64 hex digits each.

Optional arguments#

The command also takes the global options.

Syntax: --max-bytes <N>. Default: 67108864.

The most content bytes to print; the blobs past it are left out (truncated).

Examples#

No recorded example yet.

Return information#

result is a BlobGetResp (swarmops schema BlobGetResp prints its JSON Schema).

FieldTypeRequiredDescription
blobsarray of BlobOutyesThe blobs, each whole.
missingarray of stringyesThe ids the store holds no blob under.
truncatedbooleanyesWhether blobs were left out to keep within max_bytes.

Envelope op: blob_get.

Exit codes:

  • 0: Success.

Errors#

No golden step shows this command failing yet.

Any command that opens a store may also fail with a store error, such as E_NOT_A_REPO, E_IO or E_STORE_CORRUPT; a command line the grammar refuses is E_INVALID_ARG (exit 2).

See also#

On this page