Appearance
CLI reference
Every command of diffuse-coordinator, generated from the binary itself. If a page here disagrees with what your terminal prints, the page is a bug: a test regenerates all of this and fails on any difference.
Where to start
Every command below runs on the coordinator's own machine as root, where /etc/diffuse/coordinator.toml already says where to connect. From another machine, login first.
The first hour, in five commands
Install the licence you were sent, create a token for your machines, run a model from the catalogue, and give an application a key:
bash
sudo diffuse-coordinator licence set /tmp/klinik.licence
sudo diffuse-coordinator token create --pool lab --max-uses 10 --ttl 2h
sudo diffuse-coordinator model run qwen2.5:3b --pool lab
sudo diffuse-coordinator apikey create --name first-app --expires 90d
sudo diffuse-coordinator deployment listlicence set · token create · model run · apikey create · deployment list. Each machine that computes joins with the line token create prints: see node.
See the state of the park
bash
sudo diffuse-coordinator nodes
sudo diffuse-coordinator deployment list
sudo diffuse-coordinator licence shownodes lists the machines and their health, deployment list what is served and where, licence show until when.
Find what happened
bash
sudo diffuse-coordinator audit --limit 20
sudo diffuse-coordinator audit --result denied --limit 20audit reads the trail: every change, every refusal and every sensitive read, with who did it.
Connection options
Every command that talks to a running coordinator takes these five. On the coordinator's own machine, run as root, none is needed: /etc/diffuse/coordinator.toml, read by default, says where to connect and with which certificate. From another machine, login opens a session the commands use. A certificate given with these flags wins over a session.
| flag | type | default | description |
|---|---|---|---|
--config <CONFIG> | path | $DIFFUSE_COORDINATOR_CONFIG | Configuration file. Its [admin] section says where to connect |
--endpoint <ENDPOINT> | text | $DIFFUSE_COORDINATOR_ENDPOINT | Coordinator endpoint, e.g. https://coordinator.internal:7443 |
--ca-cert <CA_CERT> | path | $DIFFUSE_CA_CERT | The deployment CA certificate (PEM) |
--cert <CERT> | path | $DIFFUSE_CERT | This process's certificate chain (PEM) |
--key <KEY> | path | $DIFFUSE_KEY | This process's private key (PEM) |
init
Prepare the state directory and derive the enrolment CA from the deployment root CA
bash
diffuse-coordinator init --org "Klinik Beispiel" --host coordinator.internalserve
Run the coordinator: mTLS gRPC listener plus the node registry
bash
diffuse-coordinator serve --config /etc/diffuse/coordinator.tomlnodes
List the nodes this coordinator currently sees
bash
diffuse-coordinator nodestoken
Create and manage join tokens
| command | what it does |
|---|---|
token create | Issue a join token and print the line to paste onto a machine |
token list | List tokens by handle. Secrets are not stored and cannot be shown |
token revoke | Revoke a token |
node
Manage node identities
| command | what it does |
|---|---|
node revoke | Revoke a node identity: refuse it at every call and evict it now |
node list-revoked | List revoked node identities |
apikey
Create and manage API keys for the public inference endpoint
| command | what it does |
|---|---|
apikey create | Issue a key and print it. Shown once; only its hash is stored |
apikey list | List keys by handle. Secrets are not stored and cannot be shown |
apikey revoke | Revoke a key. Effective on the very next request |
apikey rotate | Issue the next key in place of one, and put the old one on a clock |
identity
Register the people a chat facade may act for
| command | what it does |
|---|---|
identity import | Import people from a CSV file. Idempotent: run it again after a change |
identity list | List the people this deployment knows |
identity disable | Stop a gateway acting for somebody, keeping the trail that names them |
identity enable | Let a gateway act for somebody again |
model
Acquire, inspect and place models
| command | what it does |
|---|---|
model import | Ingest a model from a .gguf file or a safetensors directory. The path for a coordinator with no internet route, which is most of them in a regulated deployment |
model pull | Fetch a model: a name from the catalogue, or a repository on a hub |
model run | Fetch a model and serve it: the two commands most people want as one |
model list | List acquired models and their provenance |
model rm | Remove a model and its index |
model serve | Place a model on the nodes of a pool |
deployment
Inspect and tear down deployments
| command | what it does |
|---|---|
deployment list | List deployments and their slices |
deployment show | One deployment: its engine, max batch, context, placement and slices |
deployment rm | Tear a deployment down |
audit
Read the audit trail: who did what, when, and what was refused
bash
diffuse-coordinator audit --action inference --limit 3dataset
Import and inspect training data. Customer data, declared not detected
| command | what it does |
|---|---|
dataset import | Ingest a file the coordinator can read |
dataset list | List datasets and what they were declared as |
dataset rm | Remove a dataset, unless a job or an adapter still points at it |
finetune
Fine-tune a model on a file, in one command
bash
diffuse-coordinator finetune qwen2.5-3b berichte.jsonljob
Start, watch and stop fine-tuning runs
| command | what it does |
|---|---|
job create | Start a LoRA fine-tuning run |
job list | List runs, newest first |
job get | One run in full, with the sentence explaining where it is |
job watch | Follow a run until it ends, then say what to do with the result |
job cancel | Ask a run to stop at the next step boundary, keeping its checkpoint |
adapter
Inspect the adapters runs produced, with their provenance
| command | what it does |
|---|---|
adapter list | List adapters with the whole chain behind each one |
adapter export | Write an adapter's own bytes somewhere you keep them |
adapter rm | Remove an adapter |
eval
Score a base model against a fine-tune on a suite
bash
diffuse-coordinator eval berichte-test --model qwen2.5-3b+berichte-v1distill
Teach a small model what a large one knows: label, train, and score
bash
diffuse-coordinator distill --teacher qwen2.5-3b --student qwen2.5-0.5b-instruct --as berichte-klein berichte.jsonllicence
What this deployment is entitled to, and until when
| command | what it does |
|---|---|
licence show | Show the licence this coordinator is running under |
licence set | Install a licence file and bring the deployment up on it |
firewall
The ports this machine must expose, and the host firewall in front of them
| command | what it does |
|---|---|
firewall status | Which of this machine's ports are reachable, from where, and why |
firewall open | Open the coordinator's ports to the private networks this machine is on |
firewall close-enrolment | Close enrolment, once every machine has joined |
certificate
This machine's certificate: the names and addresses nodes reach it by
| command | what it does |
|---|---|
certificate renew | Issue this machine's certificate again, for the names and addresses it has now |
login
Sign in as a person, and keep the session on this machine
bash
diffuse-coordinator login --endpoint https://coordinator.internal:7446logout
End this session, here and on the coordinator
bash
diffuse-coordinator logoutwhoami
Who this session belongs to, and what it may do
bash
diffuse-coordinator whoamipassword
Change this account's own password
bash
diffuse-coordinator passwordaccount
Human accounts: who may sign in, and as what
| command | what it does |
|---|---|
account list | List the accounts |
account create | Create an account with a one-time password |
account role | Change what somebody may do. Ends their sessions |
account disable | Switch an account off, and revoke everything it is holding |
account enable | Switch it back on |
account bootstrap | Create the first account. Run on the coordinator host. |
account recover | Reset a password when the identity provider is down and the password is lost. Run on the coordinator host, and audited like bootstrap |
session
Who is signed in, from where, since when
| command | what it does |
|---|---|
session list | Who is signed in |
session revoke | End somebody else's session, now |
