CLI overview
Commands, conventions, exit codes and environment variables shared by every argoctl command.
Commands
| Command | What it does |
|---|---|
argoctl site validate | Parse and check a site file; print a summary, or every problem with its location and fix. |
argoctl preflight | Prove every node's BMC can boot it from Redfish virtual media, then restore the BMC. |
argoctl analyse | Inventory CPUs, memory, GPUs, interconnect and storage, and report which models can be served and how. |
argoctl ironic install | Install (or repair) Ironic on mgmt in Docker, with the deploy agent and OS image, and check it's healthy. |
argoctl ironic status | Show Ironic's containers, health and the nodes it knows. |
argoctl ironic uninstall | Remove Ironic's containers, and with --purge its data. |
argoctl node-config | Print the per-node network and config-drive settings argoctl generates. |
argoctl provision | Install Ubuntu on every node over virtual media with static IPs, and check SSH. |
argoctl create cluster | Build the Kubernetes cluster: host profile, kubeadm, Cilium, GPU Operator, then the checks. |
argoctl verify cluster | Run the cluster checks only. |
argoctl deploy inference | Deploy (or update) a vLLM model server with Helm and print its endpoint. |
argoctl get inference | List inference deployments, their status and endpoints. |
argoctl delete inference | Remove an inference deployment. |
argoctl version | Print the version, git commit and build target. |
argoctl --help and argoctl <command> --help print the same information.
Conventions
The site file comes first
Every command except version and ironic uninstall takes the path of the site file as its first argument:
argoctl <command> <site-file> [flags]Where to run, and as whom
Run argoctl on mgmt. Commands that touch BMCs, Ironic, the nodes or the cluster need root, because they read mgmt's provisioning SSH key and Ironic's credentials:
| Command | Root | Needs the BMC password |
|---|---|---|
site validate, node-config, version | no | no |
preflight, analyse, provision | yes | yes |
ironic install, ironic status, ironic uninstall | yes | no |
create cluster, verify cluster, deploy inference, get inference, delete inference | yes | no |
sudo drops your environment, so pass the variables a command needs explicitly:
sudo --preserve-env=ARGOCTL_BMC_PASSWORD argoctl provision /etc/argoctl/site.yamlOutput
- Progress goes to stderr as it happens: one line per step, prefixed with the node or component it's about.
- The report (a summary line with
✓or✗, then tables) goes to stdout. - With
--json, stdout carries the report as one JSON document instead, soargoctl ... --json > report.jsongives clean JSON while progress still shows on the terminal. - After a failure, the error is followed by numbered To fix steps, with the commands to run.
- The last line is always the path of the run's log:
Full log: /var/log/argoctl/20261130T101500Z-provision.log.
Idempotent and resumable
Every command that changes something first checks the current state and changes only what differs from the site file. Re-running a successful command reports nothing to change; re-running an interrupted one finishes the job. Ctrl-C stops a run cleanly (and in preflight, restores the BMCs); a second Ctrl-C quits at once.
Exit codes
| Code | Meaning |
|---|---|
0 | Success: everything the command was asked to do is done and every check passed. |
1 | Failure: something failed, a check didn't pass, or the run couldn't start. The report says what and how to fix it. |
2 | Usage error: unknown flag, missing argument, invalid value. |
Durations
Timeout flags take a number with a unit: 30s, 10m, 1h, 1h30m.
Environment variables
| Variable | Used by | |
|---|---|---|
ARGOCTL_BMC_PASSWORD | preflight, analyse, provision | The usual name for the BMC password; the site file's bmc.password_env decides which variable is read. |
ARGOCTL_LOG_DIR | every command | Write run logs to this directory instead of the default. See Run logs. |
HF_TOKEN | deploy inference | The usual name for a Hugging Face token; --hf-token-env decides which variable is read. |
NO_COLOR | every command | Disable coloured output. |