# types.SpawnOptions.environment

- **Module:** types
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-ts/blob/ad09eaef7ffff40f510989ee0695852c44a31576/packages/libtmux/src/types.ts#L564
- **Page:** https://libtmux.org/en/ts/latest/reference/types-spawnoptions-environment/

Variables added to the program's environment. They reach tmux as command arguments, which `ps` on this machine shows while the command runs; pass a secret through [`input`](/en/ts/latest/reference/types-spawnoptions-input/) instead. tmux replaces a `PATH` passed that way with its client's, so the wrapper sets this one itself before finding [`argv`](/en/ts/latest/reference/types-plannedoperation-argv/)`[0]`.
