# argoctl get inference

Source: https://argoctl-docs.pages.dev/docs/reference/cli/get-inference

> List inference deployments with their model, readiness, GPU layout and endpoint.

## Synopsis

```bash
sudo argoctl get inference <site-file> [name] [flags]
```

## Description

Lists the inference deployments that `argoctl deploy inference` created on the site's cluster: what each serves, how many replicas are ready, how it uses the GPUs and where to reach it. With a `name`, it shows that deployment in detail, including each replica's node, GPUs and state. It changes nothing.

## Flags

| Flag | Default | |
|---|---|---|
| `<site-file>` | | Path to the site file. |
| `[name]` | all | Show one deployment in detail. |
| `--namespace <ns>` | `argo-inference` | Namespace to list. |
| `--all-namespaces` | | List every namespace. |
| `--json` | | Print the result as JSON on stdout. |

## Examples

```bash
sudo argoctl get inference /etc/argoctl/site.yaml
sudo argoctl get inference /etc/argoctl/site.yaml llama-70b
sudo argoctl get inference /etc/argoctl/site.yaml --json | jq -r '.deployments[] | "\(.name) \(.endpoint.url)"'
```

## Output

```text
$ sudo argoctl get inference /etc/argoctl/site.yaml
  NAME       MODEL                                 READY  GPUS        LAYOUT             ENDPOINT                         AGE
  qwen3-8b   Qwen/Qwen3-8B                         4/4    4 (1 x 4)   replicate          http://172.16.2.21:30080/v1      2h
  llama-70b  RedHatAI/Llama-3.3-70B-Instruct-FP8   4/4    8 (2 x 4)   tensor parallel 2  http://172.16.2.100/v1           35m

  GPUs: 12 of 16 in use, 4 free (gpu1 2, gpu2 2)
```

One deployment:

```text
$ sudo argoctl get inference /etc/argoctl/site.yaml llama-70b
  name       llama-70b (namespace argo-inference)
  model      RedHatAI/Llama-3.3-70B-Instruct-FP8 @ main, served as RedHatAI/Llama-3.3-70B-Instruct-FP8
  vLLM       v0.34.0, dtype auto (fp8), max-model-len 32768
  layout     tensor parallel 2, 2 GPUs per replica
  endpoint   http://172.16.2.100/v1 (LoadBalancer on the frontend network), API key required
  status     4/4 replicas ready

  REPLICA  NODE  GPUS  STATE  RESTARTS  AGE
  1        gpu1  0,1   Ready  0         35m
  2        gpu1  2,3   Ready  0         35m
  3        gpu2  0,1   Ready  0         35m
  4        gpu2  2,3   Ready  0         35m
```

## Exit codes

| Code | Meaning |
|---|---|
| `0` | Listed (also when there are no deployments). |
| `1` | The cluster couldn't be reached, or the named deployment doesn't exist. |
| `2` | Usage error. |

## Troubleshooting

| Symptom | Likely cause and fix |
|---|---|
| `READY 1/2` | A replica isn't serving. `get inference <site-file> <name>` shows which and its state; `kubectl -n argo-inference describe pod <pod>` shows why. |
| A deployment created with `kubectl` or `helm` isn't listed | Only deployments made by `argoctl deploy inference` are listed. |
| `no deployment named ...` | Check the name and namespace (`--all-namespaces`). |
