CLI reference / database / push

stado database push

Invocation

stado database push [OPTIONS] --service <SERVICE> <HOST>

Purpose

Make a host's database declarations equal to this machine's. Reads HOST's config file whole (its `config show` omits the block), writes this machine's `database_api` there through `host config set` when the two differ, and reconciles --service so the running process reads it. --check writes nothing and exits non-zero on a difference.

Required inputs and options

Input or optionContract
<HOST>Positional input; required or optional as shown in the invocation.
--service <SERVICE>The registry-managed unit on HOST that serves the database plane
--checkReport the difference and write nothing; exit non-zero on it
--jsonEmit machine-readable output

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

  • Report the difference and write nothing; exit non-zero on it
  • 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.