CLI reference / service / env

stado service env

Invocation

stado service env <COMMAND>

Purpose

One managed unit's environment: show it, set or unset one key, and check the endpoints its env file declares

Required inputs and options

This command has no command-specific inputs or options.

Output and state effect

This command group selects one of the subcommands listed below; use its exact child invocation to perform an operation.

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.

Subcommands

  • show — Show a managed unit's environment
  • set — Replace one key in a managed runtime env file or systemd definition
  • unset — Remove one key from a managed env file or systemd definition
  • check — Does this unit's env file agree with what is actually listening?
  • write — Host primitive used by `set`/`unset` on a systemd unit: set (with --value-stdin, the base64 value on standard input) or remove one `Environment=` key in the file on this very host. The value never appears in argv, where every other process on the host could read it