> ## Documentation Index
> Fetch the complete documentation index at: https://baseten-philip-copy-0226.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# truss predict

> Invokes the packaged model.

```
truss predict [OPTIONS]
```

## Options

<ParamField body="--remote" type="TEXT">
  Name of the remote in .trussrc to patch changes to.
</ParamField>

<ParamField body="-d, --data" type="TEXT">
  String formatted as json that represents request.
</ParamField>

<ParamField body="-f, --file" type="PATH">
  Path to json file containing the request.
</ParamField>

<ParamField body="--model_version" type="TEXT">
  ID of model version to invoke.
</ParamField>

<ParamField body="--model" type="TEXT">
  ID of model to invoke.
</ParamField>

<ParamField body="--help">
  Show help message and exit.
</ParamField>

## Arguments

<ParamField body="TARGET_DIRECTORY" type="Optional">
  A Truss directory. If none, use current directory.
</ParamField>

## Examples

```
truss predict -d '{"prompt": "What is the meaning of life?"}'
```

```
truss predict --published -f my-prompt.json
```
