baseten volume commands to publish new versions, roll back a deployment, inspect and download data, and delete or restore versions. For how versions, tags, and references work, see Volumes.
Publish a new version
Each push seals a new version. Pass--tag to move a tag to it; only the chunks that changed upload:
source in bdn.mounts to the new version’s reference and redeploy. A push fails if another push to the same volume is in progress; run it again.
Roll back a deployment
The CLI can’t move a tag to an existing version. To roll back, find the earlier version’s digest withbaseten volume versions, set source in bdn.mounts to that version’s reference, and redeploy.
Inspect and download data
Download a version or a directory in it:
baseten volume pull.
Delete and restore a version
baseten volume rm deletes one version selected by digest, or every version of a volume with --recursive:
--include-tombstoned, and restore one by its full digest:
--tag.
Mount paths
Each entry inbdn.mounts mounts one volume read-only at path. BDN rejects a mount path that:
- Isn’t absolute, is
/, or contains... - Is a system root:
/bin,/dev,/etc,/lib,/lib64,/proc,/run,/sbin,/sys,/tmp,/usr, or/var. You can mount at a subdirectory such as/usr/share/modelsunless it overlaps a runtime path. - Is in a tree Baseten reserves:
/app,/bdn,/bptr,/cache,/control,/probe-bin,/scratch, or/secrets. - Overlaps a path the model container uses, such as
/dev/shm,/etc/ssl/certs,/root/.cache/huggingface,/usr/bin, or/usr/local/bin. - Repeats another mount’s path or a
weightsmount_location.
/mnt, such as /mnt/data.
Namespaces Baseten manages
Baseten stores platform data, such as startup caches, container images, and snapshots, in volumes under your organization. You may see namespaces such ascaches, images, and snapshots in baseten volume ls. These namespaces are read-only and Baseten manages their lifecycle, so you can’t create, push, or delete volumes under them.
For volume mount errors and replica startup failures, see BDN volume troubleshooting.