Blaxel Volumes are currently in private preview. Please contact us if you would like to get access before the public release date.
Create & delete a volume
Create
To create a standalone volume, you must provide a uniquename
and specify its size
in megabytes (MB). This volume exists independently of any sandbox.
Set up authentication to Blaxel
Set up authentication to Blaxel
The Blaxel SDK authenticates with your workspace using credentials from these sources, in priority order:
- when running on Blaxel, authentication is handled automatically
- variables in your
.env
file (BL_WORKSPACE
andBL_API_KEY
, or see this page for other authentication options). - environment variables from your machine
- configuration file created locally when you log in through Blaxel CLI (or deploy on Blaxel)
Manage volume templates
Create volumes containing the same set of files every time.
Manage volumes
To delete a volume:Attach volume to a sandbox
At this time, you can only attach one volume to a sandbox. A volume can also only be attached to one sandbox at a time.
volumes
property.
Each configuration must include the name
of the volume to attach and the mountPath
where it will be accessible inside the sandboxโs filesystem. The mount path will override the existing content of a directory.
/app
directory within this sandbox will be stored on my-volume
and will persist even if this sandbox is deleted.
At this time, you cannot detach a volume from a sandbox.