PRE-RELEASE: Volume commands are not GA yet. Their arguments, flags, and output may change.
namespace/volume’, with an optional ‘:tag’ or ‘@digest’ selector and trailing path, as in ‘bdn:weights/llama:prod/config/model.json’. The ‘bdn:’ is required; with no selector, the volume’s head is used. A digest may be written with or without its ‘b3:’ prefix, and shortened to 12 or more hex characters.
ls
namespace/volume’, with an optional ‘:tag’ or ‘@digest’ selector and trailing path, as in ‘bdn:weights/llama:prod/config/model.json’. The ‘bdn:’ is required; with no selector, the volume’s head is used. A digest may be written with or without its ‘b3:’ prefix, and shortened to 12 or more hex characters.
Options
TEXT
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
TEXT
default:"text"
Output formatOne of:
text, json, jsonl, noneTEXT
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
BOOL
List every entry beneath the ref instead of only its immediate children.
BOOL
Enable verbose logging
Examples
List every namespace holding volumesFilter output with --jq
Print the path of every file in a version
Output
Text mode (--output text): For entries, a table with columns: NAME, KIND, MODE, SIZE, MODIFIED, where a directory’s name ends in ’/’ and carries no size. For namespaces, one column: NAMESPACE. For volumes, a table with columns: NAME, TAGS, HEAD SIZE, VERSIONS, UPDATED. Prints what was empty to stderr when a listing has no rows.
JSON mode (--output json): payload type cmd.VolumeEntryList.
An object with version_ref and items, one entry per row, when the ref names a volume or a version. The two inventory shapes follow.
stat
namespace/volume’, with an optional ‘:tag’ or ‘@digest’ selector and trailing path, as in ‘bdn:weights/llama:prod/config/model.json’. The ‘bdn:’ is required; with no selector, the volume’s head is used. A digest may be written with or without its ‘b3:’ prefix, and shortened to 12 or more hex characters.
Options
BOOL
Write refs with the whole digest instead of shortening it to 12 hex characters.
TEXT
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
TEXT
default:"text"
Output formatOne of:
text, json, jsonl, noneTEXT
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
BOOL
Enable verbose logging
Examples
Describe a volumeFilter output with --jq
Print the digest of the version head points at, to pin a config.yaml to it
Output
Text mode (--output text): One field per line, describing the volume, the version, or the entry.
JSON mode (--output json): payload type managementapi.Volume.
The volume, when the ref names one with no selector. The two other shapes follow.
cat
namespace/volume’, with an optional ‘:tag’ or ‘@digest’ selector and trailing path, as in ‘bdn:weights/llama:prod/config/model.json’. The ‘bdn:’ is required; with no selector, the volume’s head is used. A digest may be written with or without its ‘b3:’ prefix, and shortened to 12 or more hex characters.
Options
TEXT
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
TEXT
default:"text"
Output formatOne of:
text, json, jsonl, noneTEXT
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
BOOL
Enable verbose logging
Examples
Print a file from the version head points atOutput
Text mode (--output text): The file’s bytes, exactly as the volume holds them.
JSON mode (--output json): payload type cmd.JSONUndefined.
push
namespace/volume’, with an optional ‘:tag’ or ‘@digest’ selector and trailing path, as in ‘bdn:weights/llama:prod/config/model.json’. The ‘bdn:’ is required; with no selector, the volume’s head is used. A digest may be written with or without its ‘b3:’ prefix, and shortened to 12 or more hex characters.
Options
INTEGER
Number of files processed concurrently. Defaults to 16.
BOOL
Write refs with the whole digest instead of shortening it to 12 hex characters.
TEXT
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
INTEGER
Cap on the chunk data held in memory, in MiB. Defaults to 2048.
TEXT
default:"text"
Output formatOne of:
text, json, jsonl, noneTEXT
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
TEXT
Where the tree came from, for example ‘hf://
repo@revision’. Defaults to a file URI for DIR and is part of the version’s digest, so a fixed value keeps the same tree at one version across directories.TEXT (repeatable)
Tag to apply to the new version at commit. May be repeated, and adds to a tag written on REF. Push is the only command where a tag is written rather than read.
INTEGER
Maximum object operations in flight, honored exactly. Defaults to a count the transfer adapts to what the service will bear.
BOOL
Enable verbose logging
Examples
Publish a directory as a new versionFilter output with --jq
Print the ref of the published version, which is what config.yaml takes
Output
Text mode (--output text): A summary of what was published: the version ref and digest, the file and byte counts, how many chunks were uploaded, and any tags applied. Transfer progress goes to stderr.
JSON mode (--output json): payload type cmd.VolumePushResult.
pull
namespace/volume’, with an optional ‘:tag’ or ‘@digest’ selector and trailing path, as in ‘bdn:weights/llama:prod/config/model.json’. The ‘bdn:’ is required; with no selector, the volume’s head is used. A digest may be written with or without its ‘b3:’ prefix, and shortened to 12 or more hex characters.
Options
BOOL
Write refs with the whole digest instead of shortening it to 12 hex characters.
TEXT (repeatable)
Restrict the download to this path in the volume, either a file or a directory whose contents are wanted, matched on slash boundaries. May be repeated, and is relative to the version’s root whatever path the ref carries. One that matches nothing fails the download.
TEXT
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
INTEGER
Cap on the chunk data held in memory, in MiB. Defaults to 2048.
TEXT
default:"text"
Output formatOne of:
text, json, jsonl, noneBOOL
Allow writing into a non-empty directory. Files already there that the version does not describe are left alone.
TEXT
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
BOOL
Discard a partly downloaded tree from an earlier attempt instead of continuing it.
BOOL
Write the contents of the directory the ref names directly into DIR, instead of under the path that led to them. Requires a path on the ref.
INTEGER
Maximum object operations in flight, honored exactly. Defaults to a count the transfer adapts to what the service will bear.
BOOL
Enable verbose logging
Examples
Download the version head points atFilter output with --jq
Print how many files were written
Output
Text mode (--output text): A summary of what was written: the version ref and digest, the destination, and the file and byte counts. Transfer progress goes to stderr.
JSON mode (--output json): payload type cmd.VolumePullResult.
rm
namespace/volume’, with an optional ‘:tag’ or ‘@digest’ selector and trailing path, as in ‘bdn:weights/llama:prod/config/model.json’. The ‘bdn:’ is required; with no selector, the volume’s head is used. A digest may be written with or without its ‘b3:’ prefix, and shortened to 12 or more hex characters.
Options
BOOL
Write refs with the whole digest instead of shortening it to 12 hex characters.
TEXT
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
TEXT
default:"text"
Output formatOne of:
text, json, jsonl, noneTEXT
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
BOOL
Delete every live version of the volume. Required for a ref that names a volume rather than one version.
BOOL
Skip the interactive confirmation prompt. Required when stdin is not a terminal.
BOOL
Enable verbose logging
Examples
Delete one versionFilter output with --jq
Print when the deleted version stops being restorable
Output
Text mode (--output text): One field per line: what was deleted and until when it can be restored. Prompts for confirmation first unless —yes is passed.
JSON mode (--output json): payload type managementapi.DeleteVolumeVersionResponse.
The deleted version, when the ref names one. The whole-volume shape follows.
versions
namespace/volume’, with an optional ‘:tag’ or ‘@digest’ selector and trailing path, as in ‘bdn:weights/llama:prod/config/model.json’. The ‘bdn:’ is required; with no selector, the volume’s head is used. A digest may be written with or without its ‘b3:’ prefix, and shortened to 12 or more hex characters.
Options
BOOL
Include deleted versions that are still inside their recovery window.
TEXT
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
TEXT
default:"text"
Output formatOne of:
text, json, jsonl, noneTEXT
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
BOOL
Enable verbose logging
Examples
List a volume’s versionsFilter output with --jq
Print the digest of every tagged version
Output
Text mode (--output text): Table with columns: SEQUENCE, DIGEST, SIZE, LIFECYCLE, HEAD, TAGS, CREATED. When the volume has no versions, prints “No volume versions found.” to stderr.
JSON mode (--output json): payload type managementapi.ListVolumeVersionsResponse.
restore
namespace/volume’, with an optional ‘:tag’ or ‘@digest’ selector and trailing path, as in ‘bdn:weights/llama:prod/config/model.json’. The ‘bdn:’ is required; with no selector, the volume’s head is used. A digest may be written with or without its ‘b3:’ prefix, and shortened to 12 or more hex characters.
Options
BOOL
Write refs with the whole digest instead of shortening it to 12 hex characters.
TEXT
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
TEXT
default:"text"
Output formatOne of:
text, json, jsonl, noneTEXT
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
BOOL
Enable verbose logging
Examples
Restore a deleted versionFilter output with --jq
Print the lifecycle state the version came back in
Output
Text mode (--output text): One field per line, describing the restored version.
JSON mode (--output json): payload type managementapi.RestoreVolumeVersionResponse.