Skip to content

env.emit

Emit the environment for evaluation by a shell.

Bare: the entered-shell emission plus the interactive completion hook. --agent: the membership selection for an agent session (evaluated by its env file, so no completion hook). --github writes the runner's env files, and on a Windows leg points TEMP and TMP under the runner's temp when the contract's [ci] windows-temp says runner, the default of a GitHub-shaped workspace; alone it prints what it wrote, and with a target it prints that same emission for the shell to evaluate, so the entry step enters and persists in one call.

fm env.emit <target> [--agent] [--github]
Parameter Type Default Description
<target> posix | pwsh | `` required
--agent flag false the agent selection: membership, secrets included
--github flag false persist into GITHUB_ENV/GITHUB_PATH (Actions only)

Returns: text

Example

$ fm env.emit posix --agent