bhatti volume create
Create a persistent ext4 volume.
Synopsis
Section titled “Synopsis”bhatti volume create —name <name> —size <MB>
Description
Section titled “Description”Allocates an ext4 filesystem image on the server, owned by the calling user. The volume is unattached at creation; mount it at sandbox creation time with --volume name:/mount.
The volume survives sandbox destruction. Multiple sandboxes can attach the same volume sequentially, but only one sandbox can have it attached at a time (read-only mounts via name:/mount:ro are the only way to share live).
Examples
Section titled “Examples”bhatti volume create --name workspace --size 5120vol_a1b2c3d4 workspace 5120MB ready# Attach at sandbox createbhatti create --name dev --volume workspace:/workspace# Attach read-only — multiple sandboxes can mount this simultaneouslybhatti create --name reader --volume workspace:/data:roOptions
Section titled “Options”| Flag | Default | Description |
|---|---|---|
--name <string> | (required) | Volume name. Must match [a-zA-Z0-9][a-zA-Z0-9._-]{0,62}. |
--size <int> | (required) | Initial size in MB. Grow later with bhatti volume resize. |
See Global flags for --url, --token, --json, --timing, --data-dir.
See also
Section titled “See also”bhatti create --volume— attach at bootbhatti volume resize— grow the volume- API:
POST /volumes