Skip to Content
ReferenceConfigurationEnvironment variables

Environment variables

The variables the cmdop program reads. Everything else is set in machine.json and ceiling.json.

Terms of use

VariableValueMeaning
CMDOP_ACCEPT_AGREEMENTthe terms versionAccepts the terms of use where no terminal can ask, for a scripted install. It must be the exact version the program names; another value is refused. Read by release builds only.

Startup policy for one run

Each overrides one key of machine.json for this run and never writes the file. An empty or unknown value is an error, not a fall-back to the file.

VariableValuesOverrides
CMDOP_DAEMON_AUTOSTARTtrue | falsedaemon.autostart
CMDOP_DAEMON_RESTARTon_failure | neverdaemon.restart
CMDOP_GUI_ENABLEDtrue | falsegui.enabled
CMDOP_GUI_AUTOSTARTtrue | falsegui.autostart
CMDOP_GUI_LAUNCHwhen_daemon_ready | login | manualgui.launch
CMDOP_SERVICE_SCOPEuser | systemservice.scope
CMDOP_SERVICE_MANAGERauto | launchd | systemd | windowsservice.manager

cmdop config show names environment as the origin of each value set this way.

Logs

VariableValueMeaning
RUST_LOGa filter, for example debug or infoHow much the program logs. Default info. Logs go to standard error.
CMDOP_LOG_FORMATjsonOne JSON object per line instead of plain text.

What commands on the machine see

Commands that agents run start with a small base environment and the variables the call passes, not with the cmdop program’s own environment: run commands.