Get a new Pulumi instance that uses the installation in opts.root.
Defaults to using the pulumi binary found in $PATH if no installation
root is specified. If opts.version is specified, it validates that
the CLI is compatible with the requested version and throws an error if
not. This validation can be skipped by setting the environment variable
PULUMI_AUTOMATION_API_SKIP_VERSION_CHECK or setting
opts.skipVersionCheck to true. Note that the environment variable
always takes precedence. If it is set it is not possible to re-enable
the validation with opts.skipVersionCheck.
Get a new Pulumi instance that uses the installation in
opts.root
. Defaults to using the pulumi binary found in $PATH if no installation root is specified. Ifopts.version
is specified, it validates that the CLI is compatible with the requested version and throws an error if not. This validation can be skipped by setting the environment variablePULUMI_AUTOMATION_API_SKIP_VERSION_CHECK
or settingopts.skipVersionCheck
totrue
. Note that the environment variable always takes precedence. If it is set it is not possible to re-enable the validation withopts.skipVersionCheck
.