Synopsis

fcli tool env powershell [-f=<file>] [--excludes=<exclude>[,<exclude>…​]]…​ [--tools=<toolSelectors>[,<toolSelectors>…​]]…​ [[-h] [--env-prefix=<prefix>] [--log-file=<logFile>] [--log-level=<logLevel>] [--log-mask=<level>] [--debug]]

Description

Produces PowerShell expressions for PATH updates and tool variables. Use --file to capture the output.

Options

--excludes=<exclude>[,<exclude>…​]

Comma-separated list of values to exclude from output. Allowed values: path, vars. Default: (none).

-f, --file=<file>

File to append generated PowerShell assignments to. Omit to write directly to standard output.

--tools=<toolSelectors>[,<toolSelectors>…​]

Comma-separated list of tool selectors in the form <tool-name>[:<version>]. Version selectors accept exact versions, aliases, partial semantic versions like '3' or '3.1', and '*' or 'all' to include every installed version. Defaults to the last installed version for each tool when omitted.

--debug

Enable collection of debug logs.

--env-prefix=<prefix>

Prefix for resolving default option values. Default value: FCLI_DEFAULT.

-h, --help

Use 'fcli [command] -h' to display help for fcli (sub-)commands.

--log-file=<logFile>

Write log output to file. Default: ./fcli.log if logging is enabled.

--log-level=<logLevel>

Set logging level: TRACE, DEBUG, INFO, WARN, ERROR, NONE.

--log-mask=<level>

Log mask level: high, medium, low, none. Default: medium. Masking is done on a best-effort basis; no guarantee that all sensitive data will be masked.