CLI reference / service / directory / bind

stado service directory bind

Invocation

stado service directory bind [OPTIONS] <NAME>

Purpose

The serving parameters for the host this service is placed on. The other side of `connect`: a caller asks how to reach the service, and the placed host asks how it should serve. Both answers come from the same placement and the same host records, so moving a service needs no edit on either side. Refused on a host the service is not placed on, because a gateway that binds where nothing placed it is the thing every caller then has to be protected from.

Required inputs and options

Input or optionContract
<NAME>Service name as the directory keys it, e.g. `brama`
--target <TARGET>Answer for this target instead of this machine
--jsonCommand option; required or optional as shown in the invocation.

Output and state effect

It performs the operation described above and emits its operator result on standard output or standard error. Any state change is limited to the resources and records named by the purpose and options on this page.

Refusals

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