> ## 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 init

> Create a new Truss project.

```sh theme={"system"}
truss init [OPTIONS] TARGET_DIRECTORY
```

Creates a new Truss project in the specified directory with the standard file structure.

### Options

<ParamField body="-b, --backend" type="TrussServer | TRT_LLM">
  Server type to create. Default: `TrussServer`.
</ParamField>

<ParamField body="-n, --name" type="TEXT">
  The value assigned to `model_name` in `config.yaml`.
</ParamField>

<ParamField body="--python-config / --no-python-config">
  Use code-first tooling to build the model. Default: `--no-python-config`.
</ParamField>

### Arguments

<ParamField body="TARGET_DIRECTORY" type="TEXT" required>
  Directory where the Truss project is created.
</ParamField>

**Examples:**

Create a new Truss project:

```sh theme={"system"}
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:

```sh theme={"system"}
truss init --name "My Model" my-model
```

Create a Truss with TRT\_LLM backend:

```sh theme={"system"}
truss init --backend TRT_LLM my-trt-model
```
