Environment resolution
Deploy and export scripts need three machine-specific values: TC_ROOT,
TC_DATA, and UPG. tcli resolves each, in order, from:
- the per-machine tcli env file,
.tcli.env.yaml; - the matching environment variable (
TC_ROOT,TC_DATA,UPG); - (TUI only) an interactive prompt that persists your answer to the per-machine tcli env file.
In the TUI
Section titled “In the TUI”The Home screen surfaces the resolved values and their source. Its edit
action writes them to .tcli.env.yaml.
In headless mode
Section titled “In headless mode”Headless commands never prompt. An unresolved value is a hard error that names both the tcli env file and the environment variable to set.
.tcli.env.yaml
Section titled “.tcli.env.yaml”This file holds per-machine values and must never be committed. It is
specific to each developer’s or agent’s machine. Add it to your project’s
.gitignore.
The value-to-environment-variable mapping is documented in Environment variables. See the .tcli.env.yaml schema for the full file format.