Skip to main content
truss init [OPTIONS] TARGET_DIRECTORY
Creates a new Truss project in the specified directory with the standard file structure.

Options

-b, --backend
TrussServer | TRT_LLM
Server type to create. Default: TrussServer.
-n, --name
TEXT
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

TARGET_DIRECTORY
TEXT
required
Directory where the Truss project is created.
Examples: Create a new Truss project:
truss init my-model
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