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.Replace a drive’s labels
To set the labels ofshared-notes to project=alpha and env=dev:
- TypeScript
- Python
- Go
- API
- CLI
Run the following code:To remove every label, pass
labels: {}.Next steps
Get a drive
Check a drive’s status, region, and labels.
List drives
Find drives by name or status.