declaw volume (alias declaw vol) manages volumes: persistent, owner-owned file stores you attach to sandboxes. The CLI covers copy-mode volumes, file-granular file operations, advisory locks, and capturing sandbox state into a new volume.
Attach a volume to a sandbox with declaw sandbox create --volume <id>:<mount-path>[:mode[:subpath]].
Lifecycle
snapshot
Capture an absolute in-sandbox path into a new volume. The source sandbox is unchanged.files
Read and write files inside a file-granular volume directly — no sandbox required. Each subcommand takes the volume ID; paths are passed as flags.
Pass the version from
files info to files write --if-version for an atomic compare-and-swap (a mismatch is rejected).
lock
Coordinate concurrent writers to a shared volume with advisory leases over a(volume, path) pair (alias locks). Locks are advisory — they coordinate cooperating writers, they don’t block I/O.
Next steps
- Volumes — copy-mode vs file-granular, attach modes, limits
- Sandbox commands — attach a volume at create time