CLI reference / registry / self

stado registry self

Invocation

stado registry self [OPTIONS]

Purpose

Print which registry target is this machine

Required inputs and options

Input or optionContract
--name-onlyPrint only the target name, for scripts
--localAnswer from this machine's own registry record (the last-known-good copy, or the local store) without asking the registry authority; refused naming the record when there is none
--jsonPrint the answer as JSON; a machine the registry does not carry is answered with `"name": null` instead of a refusal

Output and state effect

This is an inspection/reporting operation. It emits the result described above and does not change managed state unless an explicit option in this page says otherwise. Pass `--json` when the command exposes that machine-readable option.

Refusals

  • Answer from this machine's own registry record (the last-known-good copy, or the local store) without asking the registry authority; refused naming the record when there is none
  • Print the answer as JSON; a machine the registry does not carry is answered with `"name": null` instead of a refusal
  • Before dispatch, Stado refuses a missing required token shown in the invocation, an unknown option, or a value outside a listed value set; argument-usage failures exit with code 2.