Skip to main content
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

TEXT
Name of the remote in .trussrc. If omitted, Truss prompts to select one.
TEXT
ID of the model.
TEXT
ID of the deployment.
FILE
Save the Truss as a tar file at this path. Mutually exclusive with --out-dir.
DIRECTORY
Extract the Truss into this directory. Mutually exclusive with --out-file.
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.
humanfriendly | W | WARNING | I | INFO | D | DEBUG
default:"humanfriendly"
Logging verbosity. humanfriendly (default) is pretty-printed; INFO, DEBUG, WARNING produce structured logs.
Disable interactive prompts. Use in CI/automated contexts where stdin isn’t a TTY.
Examples: Download a Truss as a tar file:
Extract a Truss into a directory:
Overwrite an existing tar file: