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, with refs such as bdn:weights. JSON keeps bare namespace names. For volumes, a table with columns: NAME, TAGS, HEAD SIZE, VERSIONS, EXPIRES, UPDATED. An expiring tag is annotated with its expiry. 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.
Use --chunk-operations and --max-in-flight-mib to control download concurrency and memory.
Options
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
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
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.
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
tag delete to delete only the tag. A path is an error because versions are immutable.
A ref is ‘bdn: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, EXPIRES, 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.
tag set
Create a tag or move it to an existing version. Omitting--expires-at clears any expiration time already set on the tag. Version or volume expiration still removes the tag.
head. A path is invalid. Setting head requires confirmation and changes what references without a selector resolve to. You can’t give head an expiration time or point it at an expiring version.
TEXT
Time at which the tag expires, as an RFC 3339 date-time with a UTC offset, as in 2030-01-01T00:00:00Z. It must be in the future and at most ten years ahead. Omit it for a tag that does not expire. Omitting it on an existing tag clears its expiration time.
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
TEXT
required
Tag to point at the version. May be ‘head’.
TEXT
required
Ref of the version to tag, as bdn:
namespace/volume for the version head points at, or with a :tag or @digest selector for that version.BOOL
Skip confirmation for ‘head’. Required when stdin is not a terminal and —tag is ‘head’.
BOOL
Enable verbose logging
tag delete
Remove a tag without deleting its version:deleted set to false. Deleting head requires confirmation and prevents references without a selector from resolving until you set head again.
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
TEXT
required
Name of the tag to delete.
TEXT
required
Ref of the volume the tag belongs to, as bdn:
namespace/volume, with no selector and no path.BOOL
Skip confirmation for ‘head’. Required when stdin is not a terminal and —tag is ‘head’.
BOOL
Enable verbose logging
update
Set or clear the expiration time for an entire volume. When it expires, every live version is deleted, every tag is removed, and the volume disappears from listings. Clearing expiration afterward doesn’t restore deleted versions. Each version remains restorable until its recovery deadline.--yes.
BOOL
Clear the volume’s expiration time.Mutually exclusive with other flags in group
expiration.TEXT
Time at which the volume expires, as an RFC 3339 date-time with a UTC offset, as in 2030-01-01T00:00:00Z. It must be in the future and at most ten years ahead.Mutually exclusive with other flags in group
expiration.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
Skip the interactive confirmation prompt. Required when stdin is not a terminal.
BOOL
Enable verbose logging