Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.baseten.co/llms.txt

Use this file to discover all available pages before exploring further.

terminate

baseten model deployment replica terminate [OPTIONS]
Terminate a single replica of a model deployment. Prompts for yes/no confirmation. Pass —yes to skip the prompt. When stdin is not a terminal, —yes is required.

Options

--deployment-id
TEXT
required
ID of the deployment.
-q, --jq
TEXT
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
--model-id
TEXT
ID of the model.Mutually exclusive with other flags in group model-ref.
--model-name
TEXT
Name of the model. Use —team to disambiguate when the same name exists in multiple teams.Mutually exclusive with other flags in group model-ref.
-o, --output
TEXT
default:"text"
Output formatOne of: text, json, jsonl, none
--remote-url
TEXT
Baseten remote URL, overrides BASETEN_REMOTE_URL (default https://app.baseten.co)
--replica-id
TEXT
required
ID of the replica.
--team
TEXT
Team name or ID. Only valid with —model-name.
--yes
BOOL
Skip the interactive confirmation prompt. Required when stdin is not a terminal.
-v, --verbose
BOOL
Enable verbose logging

Examples

Terminate a replica without the confirmation prompt
baseten model deployment replica terminate --model-id <model-id> --deployment-id <deployment-id> --replica-id <replica-id> --yes

Filter output with --jq

Print just the success flag
baseten model deployment replica terminate --model-id <model-id> --deployment-id <deployment-id> --replica-id <replica-id> --yes --jq '.success'

Output

Text mode (--output text): On success, prints “Terminated replica id of deployment id” to stderr; no stdout output. JSON mode (--output json): payload type managementapi.TerminateReplicaResponse.