Skip to main content
Converts deprecated model_cache and external_data entries in config.yaml to the unified weights API. Truss prints a colorized diff of the change and asks for confirmation before writing it back to disk. The command is a no-op if config.yaml already defines weights or if it has neither model_cache nor external_data.

Options

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. Skips the Apply these changes? [y/N] confirmation and applies the migration. Use in CI/automated contexts.

Arguments

TEXT
A Truss directory containing config.yaml. Defaults to the current directory.
Examples: Preview and apply a migration in the current directory:
You should see a unified diff between the original and migrated config.yaml, then a prompt:
Migrate a specific Truss directory:
Run non-interactively (skip the prompt and apply the change), useful in CI: