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 download [OPTIONS]
Downloads the Truss for a deployed model as a tar file or extracts it into a directory. Use this to inspect the exact configuration and code that is running for a deployment, or to recover a Truss when the original source is unavailable. You must pass exactly one of --out-file or --out-dir.

Options

--model-id
TEXT
required
ID of the model.
--deployment-id
TEXT
required
ID of the deployment.
--out-file
PATH
Save the Truss as a tar file at this path. Mutually exclusive with --out-dir.
--out-dir
PATH
Extract the Truss into this directory. Mutually exclusive with --out-file.
--overwrite
Allow overwriting an existing file or non-empty directory. Without this flag, the command fails if the target file exists or the target directory is non-empty.
--remote
TEXT
Name of the remote in .trussrc. If omitted, Truss prompts to select one.
Examples: Download a Truss as a tar file:
truss download --model-id YOUR_MODEL_ID --deployment-id YOUR_DEPLOYMENT_ID --out-file my-truss.tar
Extract a Truss into a directory:
truss download --model-id YOUR_MODEL_ID --deployment-id YOUR_DEPLOYMENT_ID --out-dir ./my-truss
Overwrite an existing tar file:
truss download --model-id YOUR_MODEL_ID --deployment-id YOUR_DEPLOYMENT_ID --out-file my-truss.tar --overwrite