CLI reference / resources / apply

stado resources apply

Invocation

stado resources apply [OPTIONS] --plan <PLAN> --expect-hash <EXPECT_HASH>

Purpose

Execute the exact plan supplied by the operator, as its intent says: a rationalization plan or a shutdown plan

Required inputs and options

Input or optionContract
--plan <PLAN>Canonical plan produced by `resources rationalize` or `resources shutdown`
--expect-hash <EXPECT_HASH>Exact SHA-256 printed when the plan was created
--approve <APPROVE>Rationalization plans only: explicitly approve one review-required action. Repeatable
--yesRequired acknowledgement after reviewing the plan. Without it a rationalization plan is previewed and a shutdown plan is refused
--allow-irreversibleRationalization plans only: required when any selected action is irreversible
--jsonEmit a machine-readable execution summary

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

  • Rationalization plans only: explicitly approve one review-required action.
  • Required acknowledgement after reviewing the plan.
  • Without it a rationalization plan is previewed and a shutdown plan is refused
  • Rationalization plans only: required when any selected action is irreversible
  • 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.