list
Options
TEXT
default:"desc"
Sort order by creation time: ‘desc’ (newest first) or ‘asc’ (oldest first).One of:
asc, descTEXT
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
TEXT
default:"text"
Output formatOne of:
text, json, jsonl, noneTEXT
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
TEXT
Only list jobs in this training project, by name or ID.
TEXT (repeatable)
Only list jobs in these states: pending, created, deploying, deploy-failed, running, completed, failed, stopped, preempted. Repeatable.
BOOL
Enable verbose logging
Examples
List every training job you can seeFilter output with --jq
Print just the job IDs
Output
Text mode (--output text): Table with columns: ID, PROJECT, NAME, STATUS, INSTANCE TYPE, NODES, CREATED. When no jobs match, prints “No training jobs found.” to stderr.
JSON mode (--output json): payload type managementapi.SearchTrainingJobsResponse.
describe
Options
TEXT
required
ID of the training job.
TEXT
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
TEXT
default:"text"
Output formatOne of:
text, json, jsonl, noneTEXT
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
BOOL
Enable verbose logging
Examples
Describe a jobFilter output with --jq
Print the job’s current status
Output
Text mode (--output text): A field-per-line summary of the job and its project.
JSON mode (--output json): payload type managementapi.GetTrainingJobResponse.
logs
Options
TEXT
End of the log time range. Accepts ISO 8601; values without a timezone designator are interpreted in the local timezone. Default is now. Window must be at most 7 days.
TEXT
required
ID of the training job.
TEXT
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
INTEGER
default:"5000"
Maximum number of log lines to return, paging backward from the end of the window. Use 0 for no limit (every log line in the window). Not applicable with —tail.
TEXT
Only return logs at or above this severity level.One of:
debug, info, warning, errorTEXT
default:"text"
Output formatOne of:
text, json, jsonl, noneTEXT
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
TEXT
Shortcut for fetching logs from a relative time ago until now. Accepts a duration (e.g. ‘30m’, ‘1h30m’) or ‘
Nd’ (e.g. ‘3d’). Maximum ‘7d’. Mutually exclusive with —start and —end.TEXT
Start of the log time range. Accepts ISO 8601 (e.g. ‘2026-05-14’, ‘2026-05-14T12:00:00’, ‘2026-05-14T12:00:00Z’). Values without a timezone designator are interpreted in the local timezone. Default is 30 minutes before the end. Window must be at most 7 days.
BOOL
Stream new logs as they arrive until the job stops producing them or you interrupt with Ctrl-C. Cannot be combined with the time-range or filter flags. For machine-readable streaming, prefer —output jsonl over —output json.
BOOL
Enable verbose logging
Examples
Fetch the last 30 minutes of logsFilter output with --jq
Print just the log messages
Output
Text mode (--output text): One log line per row, timestamped. With —output jsonl, one JSON log record per line.
JSON mode (--output json): payload type managementapi.GetLogsResponse.
metrics
Options
TEXT
End of the sample window. Accepts ISO 8601; values without a timezone designator are interpreted in the local timezone. Default is now.
TEXT
required
ID of the training job.
TEXT
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
TEXT
default:"text"
Output formatOne of:
text, json, jsonl, noneTEXT
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
TEXT
Shortcut for sampling from a relative time ago until now. Accepts a duration (e.g. ‘30m’, ‘1h30m’) or ‘
Nd’ (e.g. ‘3d’). Mutually exclusive with —start and —end.TEXT
Start of the sample window. Accepts ISO 8601; values without a timezone designator are interpreted in the local timezone.
BOOL
Enable verbose logging
Examples
Report a job’s latest metricsFilter output with --jq
Print the GPU utilization series
Output
Text mode (--output text): Table with columns: METRIC, NODE, VALUE, MEASURED.
JSON mode (--output json): payload type managementapi.GetTrainingJobMetricsResponse.
stop
Options
TEXT
required
ID of the training job.
TEXT
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
TEXT
default:"text"
Output formatOne of:
text, json, jsonl, noneTEXT
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
BOOL
Skip the interactive confirmation prompt. Required when stdin is not a terminal.
BOOL
Enable verbose logging
Examples
Stop a job, confirming interactivelyFilter output with --jq
Print the stopped job’s status
Output
Text mode (--output text): On success, prints the stopped job’s ID to stderr; no stdout output.
JSON mode (--output json): payload type managementapi.StopTrainingJobResponse.
recreate
Options
TEXT
required
ID of the training job.
TEXT
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
TEXT
default:"text"
Output formatOne of:
text, json, jsonl, noneTEXT
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
BOOL
Enable verbose logging
Examples
Rerun a job’s configurationFilter output with --jq
Print just the new job’s ID
Output
Text mode (--output text): On success, prints the new job’s ID to stderr; no stdout output.
JSON mode (--output json): payload type managementapi.RecreateTrainingJobResponse.
update
Options
TEXT
required
ID of the training job.
TEXT
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
TEXT
default:"text"
Output formatOne of:
text, json, jsonl, noneINTEGER
required
New queue priority. Higher values are dequeued first.
TEXT
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
BOOL
Enable verbose logging
Examples
Raise a queued job’s priorityFilter output with --jq
Print the job’s new priority
Output
Text mode (--output text): On success, prints the job’s ID and new priority to stderr; no stdout output.
JSON mode (--output json): payload type managementapi.UpdateTrainingJobResponse.
download
Options
TEXT
required
ID of the training job.
TEXT
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
TEXT
Extract the artifact tar into this directory.Mutually exclusive with other flags in group
download-out.TEXT
Save the artifact as an uncompressed tar file at this path.Mutually exclusive with other flags in group
download-out.TEXT
default:"text"
Output formatOne of:
text, json, jsonl, noneBOOL
Allow overwriting an existing file or non-empty directory.
TEXT
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
BOOL
Enable verbose logging
Examples
Extract a job’s code into a directoryFilter output with --jq
Print just the destination path
Output
Text mode (--output text): Writes the artifact to disk; prints progress and the final destination path to stderr; no stdout output.
JSON mode (--output json): payload type cmd.TrainJobDownloadResult.
On success, stdout is a JSON object naming the job, with either out_file or out_dir set to the path written.