Skip to content

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 list

licence 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 show

nodes 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 20

audit 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.

flagtypedefaultdescription
--config <CONFIG>path$DIFFUSE_COORDINATOR_CONFIGConfiguration file. Its [admin] section says where to connect
--endpoint <ENDPOINT>text$DIFFUSE_COORDINATOR_ENDPOINTCoordinator endpoint, e.g. https://coordinator.internal:7443
--ca-cert <CA_CERT>path$DIFFUSE_CA_CERTThe deployment CA certificate (PEM)
--cert <CERT>path$DIFFUSE_CERTThis process's certificate chain (PEM)
--key <KEY>path$DIFFUSE_KEYThis 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.internal

serve ​

Run the coordinator: mTLS gRPC listener plus the node registry

bash
diffuse-coordinator serve --config /etc/diffuse/coordinator.toml

nodes ​

List the nodes this coordinator currently sees

bash
diffuse-coordinator nodes

token ​

Create and manage join tokens

commandwhat it does
token createIssue a join token and print the line to paste onto a machine
token listList tokens by handle. Secrets are not stored and cannot be shown
token revokeRevoke a token

node ​

Manage node identities

commandwhat it does
node revokeRevoke a node identity: refuse it at every call and evict it now
node list-revokedList revoked node identities

apikey ​

Create and manage API keys for the public inference endpoint

commandwhat it does
apikey createIssue a key and print it. Shown once; only its hash is stored
apikey listList keys by handle. Secrets are not stored and cannot be shown
apikey revokeRevoke a key. Effective on the very next request
apikey rotateIssue 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

commandwhat it does
identity importImport people from a CSV file. Idempotent: run it again after a change
identity listList the people this deployment knows
identity disableStop a gateway acting for somebody, keeping the trail that names them
identity enableLet a gateway act for somebody again

model ​

Acquire, inspect and place models

commandwhat it does
model importIngest 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 pullFetch a model: a name from the catalogue, or a repository on a hub
model runFetch a model and serve it: the two commands most people want as one
model listList acquired models and their provenance
model rmRemove a model and its index
model servePlace a model on the nodes of a pool

deployment ​

Inspect and tear down deployments

commandwhat it does
deployment listList deployments and their slices
deployment showOne deployment: its engine, max batch, context, placement and slices
deployment rmTear a deployment down

audit ​

Read the audit trail: who did what, when, and what was refused

bash
diffuse-coordinator audit --action inference --limit 3

dataset ​

Import and inspect training data. Customer data, declared not detected

commandwhat it does
dataset importIngest a file the coordinator can read
dataset listList datasets and what they were declared as
dataset rmRemove 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.jsonl

job ​

Start, watch and stop fine-tuning runs

commandwhat it does
job createStart a LoRA fine-tuning run
job listList runs, newest first
job getOne run in full, with the sentence explaining where it is
job watchFollow a run until it ends, then say what to do with the result
job cancelAsk a run to stop at the next step boundary, keeping its checkpoint

adapter ​

Inspect the adapters runs produced, with their provenance

commandwhat it does
adapter listList adapters with the whole chain behind each one
adapter exportWrite an adapter's own bytes somewhere you keep them
adapter rmRemove 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-v1

distill ​

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.jsonl

licence ​

What this deployment is entitled to, and until when

commandwhat it does
licence showShow the licence this coordinator is running under
licence setInstall 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

commandwhat it does
firewall statusWhich of this machine's ports are reachable, from where, and why
firewall openOpen the coordinator's ports to the private networks this machine is on
firewall close-enrolmentClose enrolment, once every machine has joined

certificate ​

This machine's certificate: the names and addresses nodes reach it by

commandwhat it does
certificate renewIssue 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:7446

logout ​

End this session, here and on the coordinator

bash
diffuse-coordinator logout

whoami ​

Who this session belongs to, and what it may do

bash
diffuse-coordinator whoami

password ​

Change this account's own password

bash
diffuse-coordinator password

account ​

Human accounts: who may sign in, and as what

commandwhat it does
account listList the accounts
account createCreate an account with a one-time password
account roleChange what somebody may do. Ends their sessions
account disableSwitch an account off, and revoke everything it is holding
account enableSwitch it back on
account bootstrapCreate the first account. Run on the coordinator host.
account recoverReset 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

commandwhat it does
session listWho is signed in
session revokeEnd somebody else's session, now

Diffuse Enterprise is commercial software. Diffuse Open is AGPL-3.0.