truss init [OPTIONS] TARGET_DIRECTORY
Creates a new Truss project in the specified directory with the standard file structure.
Options
Server type to create. Default: TrussServer.
The value assigned to model_name in config.yaml.
--python-config / --no-python-config
Use code-first tooling to build the model. Default: --no-python-config.
Arguments
Directory where the Truss project is created.
Examples:
Create a new Truss project:
You should see:
Truss my-model was created in /path/to/my-model
This creates the following directory structure:
my-model/
├── config.yaml
├── data/
├── model/
│ ├── __init__.py
│ └── model.py
└── packages/
Create a Truss with a custom name:
truss init --name "My Model" my-model
Create a Truss with TRT_LLM backend:
truss init --backend TRT_LLM my-trt-model