Skip to main content

cast mounts

Mount cloud storage buckets to agent sandboxes, giving agents read or write access to external files.

Subcommands

CommandDescription
cast mounts list <agent-slug>List mounts for an agent
cast mounts add <agent-slug>Add a mount to an agent
cast mounts update <agent-slug> <mount-id>Update a mount
cast mounts remove <agent-slug> <mount-id>Remove a mount

cast mounts list

List all mounts for an agent.

Usage

cast mounts list <agent-slug>

cast mounts add

Add a storage bucket mount to an agent.

Usage

cast mounts add <agent-slug> [options]

Options

OptionDescriptionRequired
--bucket <slug>Bucket slug to mountYes
--path <path>Mount path inside the sandboxYes
--prefix <prefix>Source prefix in the bucketNo
--read-onlyMount as read-onlyNo

Example

cast mounts add my-agent \
  --bucket production-data \
  --path /data \
  --read-only

cast mounts update

Update an existing mount.

Usage

cast mounts update <agent-slug> <mount-id> [options]

Options

OptionDescription
--path <path>New mount path
--prefix <prefix>New source prefix
--enableEnable the mount
--disableDisable the mount

cast mounts remove

Remove a mount from an agent.

Usage

cast mounts remove <agent-slug> <mount-id> [-f, --force]
After modifying mounts, redeploy the agent for changes to take effect.

See Also