Skip to main content

Command Reference

Both the Python and TypeScript packages install this command surface. The 90 business operations and five waiters map to the corresponding SDK methods; five CLI-native authentication and configuration commands complete the 100 commands documented here.

Global Options​

OptionRequiredDescription
--api-keyNoOverride the configured API key for this invocation.
--base-urlNoOverride the configured Console or API URL.
--configNoRead configuration from a specific sstudio.yaml.
--format table|json|yamlNoSelect human-readable or machine-readable output. Default: table.
--versionNoPrint the installed CLI version.

Options shown in brackets are optional. Commands that accept --body support inline JSON, @file.json, or - for standard input. Unless noted otherwise, successful commands print the API response data value.

Core and Configuration​

CommandPurposeInputOutput
sstudio loginValidate an API key and save a local session.--api-key, [--base-url]Login confirmation and current identity when available.
sstudio logoutRemove locally cached credentials.None.Removal confirmation.
sstudio whoamiRead the current authenticated identity.None.Current user object.
sstudio config showInspect effective configuration without revealing credentials.None.Redacted configuration object.
sstudio config validateValidate required local model configuration and enabled modules.None.Validation object; exits non-zero when required configuration is missing.

sstudio login is a user-run command. It writes the API key, short-lived bearer token, and Base URL to ~/.sstudio/credentials.json using a 0700 configuration directory and 0600 file; sstudio logout removes the saved credentials. Agents must not run login or read, print, or modify that file.

These commands replace application-managed SDK setup. Low-level SDK methods such as request, raw response access, token access, and client cleanup do not have CLI equivalents.

Clusters​

CommandPurposeInputOutput
sstudio clusters listList clusters visible to the caller.None.UserClusterCapacityVO[]
sstudio clusters capacityRead placement-level capacity in one cluster.--cluster-idUserNodeCapacityVO[]
sstudio clusters holdsList active workload resource holds.[--cluster-id]UserWorkloadHoldVO[]
sstudio clusters timeseriesRead recent capacity snapshots.--cluster-id, [--limit]UserCapacitySnapshotVO[]

Full field definitions: Python · TypeScript

Models​

CommandPurposeInputOutput
sstudio models listSearch and page the model catalog.[--keyword, --model-type, --provider, --source, --page, --page-size]PageResult<ModelInfoVO>
sstudio models getRead one catalog model.--model-idModelInfoVO
sstudio models deployment-capabilitiesResolve supported deployment choices.--model-id, [--cluster-id]ModelDeploymentCapabilitiesVO

Full field definitions: Python · TypeScript

My Models​

CommandPurposeInputOutput
sstudio my-models uploadValidate, hash, upload, register, and complete a model directory.--path, [--name, --description, --model-type, --model-architecture, --parameter-size, --client-request-id (maximum 64 characters), --serving-config]Ready MyModelVO
sstudio my-models listPage the caller's Upload and Trained model assets.[--page, --page-size, --keyword, --status, --source]PageResult<MyModelVO>
sstudio my-models getRead one model asset.--idMyModelVO
sstudio my-models updateUpdate Upload model metadata.--id, --body UpdateMyModelRequestUpdated MyModelVO
sstudio my-models deleteDelete an unreferenced Upload model asset.--idnull
sstudio my-models resumable-uploadsList interrupted uploads that can be resumed or cancelled.None.MyModelStorageV2TaskResponse[]
sstudio my-models cancel-uploadCancel a resumable upload task.--task-idnull

upload is the public end-to-end workflow. It intentionally hides internal upload authorization, object transfer, sealing, and asset-registration calls.

Full field definitions: Python · TypeScript

Datasets​

CommandPurposeInputOutput
sstudio datasets uploadUpload local files and create a Dataset.One or more --file, --name, --type, --training-categoryCreated DatasetVO
sstudio datasets listSearch and page datasets.[--dataset-name, --dataset-type, --training-category, --order-by, --order-direction, --page-num, --page-size, --scope]PageResult<DatasetVO>
sstudio datasets getRead one Dataset.--idDatasetVO
sstudio datasets previewPreview parsed records.--id, [--limit, --cursor]DatasetPreviewVO
sstudio datasets download-urlCreate a temporary URL for one Dataset file.--body DownloadRequestDownloadUrl
sstudio datasets updateUpdate Dataset metadata or file references.--id, --body UpdateDatasetRequestUpdated DatasetVO
sstudio datasets deleteDelete an unreferenced Dataset.--idnull

Full field definitions: Python · TypeScript

Dataset Preparations​

CommandPurposeInputOutput
sstudio datasets-preparations cluster-optionsList clusters selectable for preparation workloads.None.WorkloadClusterOptionVO[]
sstudio datasets-preparations available-provider-keysList caller-owned provider keys suitable for labeling.None.PrepProviderKeysVO
sstudio datasets-preparations previewPreflight preparation resources.--body WorkloadResourcePreviewRequestWorkloadAdmissionPreviewVO
sstudio datasets-preparations createCreate a preparation task.--body PrepTaskCreateRequestPrepTaskVO
sstudio datasets-preparations listSearch and page preparation tasks.--body PrepTaskQueryRequestPageResult<PrepTaskVO>
sstudio datasets-preparations getRead task configuration, progress, and artifacts.--idPrepTaskDetailVO
sstudio datasets-preparations updateUpdate an editable task.--id, --body PrepTaskUpdateRequestUpdated PrepTaskVO
sstudio datasets-preparations generate-rulesStart labeling-rule generation.--idnull
sstudio datasets-preparations start-labelingStart labeling with optional rule text.--body PrepStartLabelingRequestnull
sstudio datasets-preparations actionCancel, retry, or delete a task.--body PrepActionRequestnull
sstudio datasets-preparations download-urlCreate a temporary task-artifact URL.--body PrepDownloadRequestDownloadUrl
sstudio datasets-preparations waitWait for rules or final completion.--id, [--until rules_ready|completed, --timeout, --interval]Latest preparation object.

Full field definitions: Python · TypeScript · Waiters

Deployments​

CommandPurposeInputOutput
sstudio deployments capabilitiesCheck whether Deployment mutations are allowed.None.InferenceServiceCapabilitiesVO
sstudio deployments featuresRead Deployment feature flags.None.DeploymentFeaturesVO
sstudio deployments cluster-optionsList clusters selectable for serving.None.WorkloadClusterOptionVO[]
sstudio deployments model-inventoryRead Model Profile placement inventory.--cluster-idModelInventoryVO
sstudio deployments previewPreflight Profile, Upload, or Trained Model resources.--body with a Profile or modelAssetId reference.ModelServingResourcePreviewVO
sstudio deployments createCreate a Profile, Upload, or Trained Model Deployment.The same --body contract as preview.InferenceServiceVO
sstudio deployments listSearch and page Deployments.[--page, --page-size, --keyword, --status]PageResult<InferenceServiceVO>
sstudio deployments getRead one Deployment.--idInferenceServiceVO
sstudio deployments eventsRead lifecycle events for troubleshooting.--idDeploymentEventVO[]
sstudio deployments yamlRead rendered Kubernetes YAML.--id, [--output]Raw text or a file.
sstudio deployments updateUpdate the Deployment description in place.--id, --body containing descriptionUpdated InferenceServiceVO; runtime/resource changes require a new generation.
sstudio deployments stopStop the workload while retaining its record.--idUpdated InferenceServiceVO
sstudio deployments preview-restartCheck restart blockers and resource fit.--idDeploymentRestartPreviewVO
sstudio deployments restartRecreate a stopped or failed workload.--idUpdated InferenceServiceVO
sstudio deployments deleteDelete the Deployment and managed workload resources.--idnull
sstudio deployments waitWait for RUNNING and fail on a terminal error.--id, [--timeout, --interval]Final Deployment object.
sstudio deployments preview --body @deployment.json
sstudio deployments create --body @deployment.json
sstudio deployments wait --id 42

Full field definitions: Python · TypeScript · Waiters

Training​

CommandPurposeInputOutput
sstudio training capabilitiesRead the active recipe and resource catalog.None.TrainCapabilitiesVO
sstudio training cluster-optionsList clusters selectable for Training.None.WorkloadClusterOptionVO[]
sstudio training previewPreflight a training resource specification.--body TrainResourcePreviewRequestWorkloadAdmissionPreviewVO
sstudio training knowledge-teacher-modelsFind compatible knowledge-distillation teachers.--student-model-id, --recipe-idTrainKnowledgeTeacherVO[]
sstudio training createCreate a fine-tuning job.--bodyObject containing jobId.
sstudio training listPage Training jobs.[--body]PageResult<TrainJobDetailVO>
sstudio training getRead progress, losses, actions, and artifacts.--idTrainJobDetailVO
sstudio training artifact-download-urlCreate temporary URLs for a completed artifact.--artifact-idurls and optional file entries.
sstudio training cancelRequest cancellation of a non-terminal job.--idnull
sstudio training waitWait for SUCCEEDED and fail on terminal errors.--id, [--timeout, --interval]Final Training job object.

Full field definitions: Python · TypeScript · Waiters

Evaluations​

CommandPurposeInputOutput
sstudio evaluations available-modelsList models available to Evaluation.None.AvailableModelsVO
sstudio evaluations cluster-optionsList clusters selectable for Evaluation.None.WorkloadClusterOptionVO[]
sstudio evaluations previewPreflight Evaluation resources.--body WorkloadResourcePreviewRequestWorkloadAdmissionPreviewVO
sstudio evaluations createCreate an Evaluation job.--body CreateEvalJobRequestCreateEvalJobVO
sstudio evaluations getRead status, scores, metrics, and report state.--idEvalJobDetailVO
sstudio evaluations reportCreate a temporary URL for the completed report.--idDownloadUrl
sstudio evaluations artifact-download-urlCreate a temporary URL for a media artifact.--id, --artifact-refDownloadUrl
sstudio evaluations waitWait for SUCCEEDED and fail on terminal errors.--id, [--timeout, --interval]Final Evaluation job object.

Full field definitions: Python · TypeScript · Waiters

Jobs​

CommandPurposeInputOutput
sstudio jobs listPage jobs across supported domains.[--type (train or eval), --status, --page, --page-size]PageResult<JobStatusView>
sstudio jobs getRead one generic job.--idJobStatusView
sstudio jobs logsRead the newest job log lines.--id, [--tail]string[]
sstudio jobs cancelCancel a supported non-terminal job.--idnull
sstudio jobs waitWait for SUCCEEDED and fail on terminal errors.--id, [--timeout, --interval]Final generic job object.

Full field definitions: Python · TypeScript · Waiters

API Keys​

CommandPurposeInputOutput
sstudio keys listList API keys visible to the caller.[--owner-id]ApiKeyResponse[]
sstudio keys createCreate an API key.--body ApikeyRequest with caller-generated keyValueApiKeyResponse.
sstudio keys revealReveal plaintext when policy permits.--idPlaintext string.
sstudio keys updateUpdate description, state, or expiration.--id, --body ApikeyRequestUpdated ApiKeyResponse
sstudio keys deleteDelete an API key.--idBoolean result.

Treat output from reveal as a secret: do not place it in logs, shell traces, or source control.

Full field definitions: Python · TypeScript

Provider Keys​

CommandPurposeInputOutput
sstudio provider-keys providersList supported provider identifiers.None.ProviderInfo[]
sstudio provider-keys listList masked provider keys.[--owner-id]ProviderKeyVO[]
sstudio provider-keys createStore a provider credential.--body CreateProviderKeyRequestProviderKeyVO
sstudio provider-keys updateRotate a credential or update its description.--id, --body UpdateProviderKeyRequestUpdated ProviderKeyVO
sstudio provider-keys change-statusEnable or disable a provider key.--id, --body ChangeProviderKeyStatusRequestnull
sstudio provider-keys testTest connectivity using the stored credential.--idConnectionTestResult
sstudio provider-keys deleteDelete a provider key.--idnull

Full field definitions: Python · TypeScript

Usage​

CommandPurposeInputOutput
sstudio usage summaryAggregate usage over a time range.Epoch-second --start-date, --end-date, [--owner-id]Usage summary object.
sstudio usage listPage individual usage records.Epoch-second --start-date, --end-date, [--page, --page-size, --key-id, --model-id, --owner-id]Usage page object.
sstudio usage trendRead time-bucketed usage.Epoch-second --start-date, --end-date, [--granularity, --key-id, --owner-id]Usage point objects.

Full field definitions: Python · TypeScript

Observability​

CommandPurposeInputOutput
sstudio observability cluster-overviewRead aggregate cluster workload utilization.--cluster-idUserClusterObservabilityOverviewVO
sstudio observability servicesList observable model-serving Deployments.[--cluster-id]UserWorkloadObservabilityVO[]
sstudio observability service-snapshotRead the newest snapshot for one Deployment.--service-idUserWorkloadObservabilityVO
sstudio observability service-timeseriesRead Deployment engine and resource points.--service-id, [--range-hours, --max-points]UserServiceMetricsPointVO[]
sstudio observability workloadsList observable workloads across domains.[--cluster-id]UserWorkloadObservabilityVO[]
sstudio observability workload-snapshotRead one generic workload snapshot.--business-type, --business-idUserWorkloadObservabilityVO
sstudio observability workload-timeseriesRead generic CPU, memory, restart, and GPU points.--business-type, --business-id, [--range-hours, --max-points]UserWorkloadMetricsPointVO[]
sstudio observability historyCursor-page workload lifecycle history.[--cluster-id, --cursor, --limit]UserWorkloadHistoryPageVO

Full field definitions: Python · TypeScript

Output and Errors​

table, json, and yaml encode the same successful value. Use JSON for automation. Raw text commands such as deployments yaml can write directly to --output.

On failure, the CLI writes labeled error text to standard error and exits non-zero. When the service supplies them, that text includes code, errorCode, message, and details; --format json applies only to successful stdout. Do not automatically retry an unknown create result; query the resource first or reuse its idempotency token.