---
title: CLI
---
The `clearml-serving` utility is a CLI tool for model deployment and orchestration.
The following page provides a reference for `clearml-serving`'s CLI commands:
* [list](#list) - List running Serving Services
* [create](#create) - Create a new Serving Service
* [metrics](#metrics) - Configure inference metrics Service
* [config](#config) - Configure a new Serving Service
* [model](#model) - Configure Model endpoints for a running Service
```bash
clearml-serving [-h] [--debug] [--id ID] {list,create,metrics,config,model}
```
**Parameters**
|Name|Description|Optional|
|---|---|---|
|`--id`|Serving Service (Control plane) Task ID to configure (if not provided automatically detect the running control plane Task) |
![No](/docs/latest/icons/ico-optional-no.svg)
|
|`--debug` | Print debug messages |
![Yes](/docs/latest/icons/ico-optional-yes.svg)
|
:::info Service ID
The Serving Service's ID (`--id`) is required to execute the `metrics`, `config`, and `model` commands.
:::
### list
```bash
clearml-serving list [-h]
```
List running Serving Services.
### create
```bash
clearml-serving create [-h] [--name NAME] [--tags TAGS [TAGS ...]] [--project PROJECT]
```
Create a new Serving Service
**Parameters**
|Name|Description|Optional|
|---|---|---|
|`--name` |Serving service's name. Default: `Serving-Service`|
![No](/docs/latest/icons/ico-optional-no.svg)
|
|`--project`|Serving service's project. Default: `DevOps`|
![No](/docs/latest/icons/ico-optional-no.svg)
|
|`--tags` |Serving service's user tags. The serving service can be labeled, which can be useful for organizing |
![Yes](/docs/latest/icons/ico-optional-yes.svg)
|
### metrics
Configure inference metrics Service
```bash
clearml-serving metrics [-h] {add,remove,list}
```
**Parameters**
|Name|Description|Optional|
|---|---|---|
|`--add` | Add/modify metric for a specific endpoint|
![Yes](/docs/latest/icons/ico-optional-yes.svg)
|
|`--remove` | Remove metric from a specific endpoint|
![Yes](/docs/latest/icons/ico-optional-yes.svg)
|
|`--list` | list metrics logged on all endpoints |
![Yes](/docs/latest/icons/ico-optional-yes.svg)
|
### config
Configure a new Serving Service.
```bash
clearml-serving {base-serving-url, triton-grpc, kafka-metric-server, metric-log-freq}
```
**Parameters**
|Name|Description|Optional|
|---|---|---|
|`--base-serving-url`|External base serving service url. Example: `http://127.0.0.1:8080/serve`|
![Yes](/docs/latest/icons/ico-optional-yes.svg)
|
|`--triton-grpc-server`|External ClearML-Triton serving container gRPC address. Example: `127.0.0.1:9001`|
![Yes](/docs/latest/icons/ico-optional-yes.svg)
|
|`--kafka-metric-server`|External Kafka service url. Example: `127.0.0.1:9092`|
![Yes](/docs/latest/icons/ico-optional-yes.svg)
|
|`--metric-log-freq`|Set default metric logging frequency. 1.0 is 100% of all requests are logged|
![Yes](/docs/latest/icons/ico-optional-yes.svg)
|
### model
Configure Model endpoints for an already running Service
```bash
clearml-serving model [-h] {list,remove,upload,canary,auto-update,add}
```
**Parameters**
|Name|Description|Optional|
|---|---|---|
|`--list`| List current models|
![Yes](/docs/latest/icons/ico-optional-yes.svg)
|
|`--remove`| Remove model by its endpoint name |
![Yes](/docs/latest/icons/ico-optional-yes.svg)
|
|`--upload` | Upload and register model files/folder |
![Yes](/docs/latest/icons/ico-optional-yes.svg)
|
|`--canary` | Add model Canary/A/B endpoint |
![Yes](/docs/latest/icons/ico-optional-yes.svg)
|
|`--auto-update` | Add/Modify model auto update service |
![Yes](/docs/latest/icons/ico-optional-yes.svg)
|
|`--add` | Add/Update model |
![Yes](/docs/latest/icons/ico-optional-yes.svg)
|