hello-world.
Drives are in pre-release in the Baseten CLI (
baseten drive and baseten sandbox drive) and in the Python, TypeScript, and Go SDKs (baseten, @basetenlabs/client, @basetenlabs/sandbox, and baseten-go). Commands, methods, and responses can change. The Management API drive operations are experimental.List drive mounts
Each mount shows the drive’s name, the folder of the drive that’s mounted (/
for the whole drive), the mount path in the sandbox, and whether it’s
read-only.
To list the drives mounted in hello-world:
- TypeScript
- Python
- Go
- API
- CLI
Run the following code:
Next steps
Unmount a drive
Detach a drive from a sandbox and keep its files.
Mount a drive
Mount another drive or folder.