Model
thesis model
Manage models.
thesis model list
List all models.
thesis model list [options]
-
Arguments
- None
-
Options
| Option | Description | Default | Required? |
|---|---|---|---|
--core-url <url> |
Core API URL | http://localhost:42421 |
No |
--json |
Output as JSON | No |
- Examples
thesis model list
thesis model list --json
thesis model get
Get a model by ID.
thesis model get <id> [options]
-
Arguments
id(required): model ID
-
Options
| Option | Description | Default | Required? |
|---|---|---|---|
--core-url <url> |
Core API URL | http://localhost:42421 |
No |
--json |
Output as JSON | No |
- Examples
thesis model get 01234567-89ab-cdef-0123-456789abcdef
thesis model create
Create a new model record.
thesis model create [options]
-
Arguments
- None
-
Options
| Option | Description | Default | Required? |
|---|---|---|---|
--name <name> |
Model name | Yes | |
--path <path> |
Path to the model file | Yes | |
--description <desc> |
Description | No | |
--core-url <url> |
Core API URL | http://localhost:42421 |
No |
--json |
Output as JSON | No |
- Examples
thesis model create --name "My model" --path /models/model.bin
thesis model upload
Upload a file as a new model.
thesis model upload <file> [options]
-
Arguments
file(required): path to a local file to upload
-
Options
| Option | Description | Default | Required? |
|---|---|---|---|
--name <name> |
Model name (defaults to filename) | No | |
--description <desc> |
Description | No | |
--core-url <url> |
Core API URL | http://localhost:42421 |
No |
--json |
Output as JSON | No |
- Examples
thesis model upload ./model.onnx
thesis model delete
Delete a model.
thesis model delete <id> [options]
-
Arguments
id(required): model ID
-
Options
| Option | Description | Default | Required? |
|---|---|---|---|
--keep-file |
Do not delete the model file on disk | No | |
--core-url <url> |
Core API URL | http://localhost:42421 |
No |
- Examples
thesis model delete 01234567-89ab-cdef-0123-456789abcdef
thesis model delete 01234567-89ab-cdef-0123-456789abcdef --keep-file
- Notes
- These commands call the Core API endpoints under
/model/*. Start a local server withthesis server start(or runthesis app) if you’re using the default--core-url.
- These commands call the Core API endpoints under