PRE-RELEASE: Drive commands are not GA yet. Their arguments, flags, and output may change.
baseten sandbox drive mount. Only sandboxes in the drive’s region can mount it.
list
--limit. Filter by --query or repeatable --status. Labels aren’t listed. Read them with drive describe.
Options
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
Only drives with one of these statuses. Repeatable.One of:
deleting, deployed, deploying, failedTeam name or ID to list drives of. Defaults to your only team; required if you belong to more than one. Run ‘baseten org team list’ to see teams.
Examples
List drivesFilter output with --jq
Print the name of every drive
Output
Text mode (--output text): Table with columns: NAME, STATUS, REGION, CREATED. Prints “No drives found.” to stderr when the list is empty, and a note to stderr when --limit left some out.
JSON mode (--output json): Go output type cmd.DriveList.
describe
Options
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
Team name or ID the drive belongs to. Defaults to your only team; required if you belong to more than one. Run ‘baseten org team list’ to see teams.
Examples
Describe a driveFilter output with --jq
Print the drive’s region
Output
Text mode (--output text): One field per line describing the drive. Empty fields are left out.
JSON mode (--output json): Go output type managementapi.Drive.
create
Options
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
Region of the drive. Only sandboxes in the same region can mount it. Defaults to the default sandbox region.
Team name or ID to create the drive in. Defaults to your only team; required if you belong to more than one. Run ‘baseten org team list’ to see teams.
Examples
Create a driveFilter output with --jq
Create a drive and print its status
Output
Text mode (--output text): One field per line describing the created drive. Empty fields are left out.
JSON mode (--output json): Go output type managementapi.Drive.
update
--label replaces all of them, and --clear-labels removes them all. A drive’s name and region can’t change.
Options
Label as KEY=VALUE, replacing all of the drive’s labels. Repeatable. Cannot be combined with
--clear-labels.Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
Team name or ID the drive belongs to. Defaults to your only team; required if you belong to more than one. Run ‘baseten org team list’ to see teams.
Examples
Replace a drive’s labelsFilter output with --jq
Replace a drive’s labels and print them
Output
Text mode (--output text): One field per line describing the updated drive. Empty fields are left out.
JSON mode (--output json): Go output type managementapi.Drive.
delete
Options
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
Team name or ID the drive belongs to. Defaults to your only team; required if you belong to more than one. Run ‘baseten org team list’ to see teams.
Examples
Delete a drive without the confirmation promptFilter output with --jq
Delete a drive and print its status
Output
Text mode (--output text): A confirmation line on stderr.
JSON mode (--output json): Go output type managementapi.Drive.
The drive’s record as deletion starts.