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.

truss model-config [OPTIONS]
Fetches the config.yaml of a deployed model from Baseten and prints it to stdout. Use this to inspect the exact configuration a deployment is running, or to recover a config when the original source is unavailable. By default, the command prints the original config.yaml that was uploaded with the deployment. If no original is stored, it prints the parsed config rendered as YAML. Pass --output json to get the full structured response.

Options

--model-id
TEXT
required
ID of the model.
--deployment-id
TEXT
required
ID of the deployment.
--remote
TEXT
Name of the remote in .trussrc. If omitted, Truss prompts to select one.
--output
text | json
default:"text"
Output format. text prints the original config.yaml (or the parsed config rendered as YAML if no original is stored). json emits the full response (config, raw_config) as JSON to stdout.
Examples: Print the deployed config to stdout:
truss model-config --model-id YOUR_MODEL_ID --deployment-id YOUR_DEPLOYMENT_ID
Save the deployed config to a file:
truss model-config --model-id YOUR_MODEL_ID --deployment-id YOUR_DEPLOYMENT_ID > config.yaml
Get the full structured response as JSON:
truss model-config --model-id YOUR_MODEL_ID --deployment-id YOUR_DEPLOYMENT_ID --output json
To download the entire Truss directory (config plus model code), use truss download instead.