Pulumi CLI environment variables
- PULUMI_AUTOMATION_API_SKIP_VERSION_CHECK
Skips the minimum CLI version check used by Automation API to ensure compatibility. We do not recommend using this variable as it may result in unexpected behavior or confusing error messages from Automation API.
PULUMI_AUTOMATION_API_SKIP_VERSION_CHECK=true
- PULUMI_ACCESS_TOKEN
Set this environment variable to authenticate into the Pulumi Cloud backend and bypass the access token prompt when running
pulumi login
.PULUMI_ACCESS_TOKEN="your-access-token"
- PULUMI_BACKEND_URL
Set this environment variable to use a specified backend instead of the default backend. See State and Backends for details on valid backend URLs.
PULUMI_BACKEND_URL="s3://your-pulumi-state-bucket"
- PULUMI_CONFIG
Sets configuration for unit testing. Must be in JSON format.
This environment variable is ignored during normal Pulumi operations -- e.g.,
up
,preview
, etc.PULUMI_CONFIG="{'project:myTag':'val1','project:mySecret':'val2'}"
- PULUMI_CONFIG_PASSPHRASE
Set this as an environment variable to protect and unlock your configuration values and secrets. Your passphrase is used to generate a unique key for your stack, and configuration and encrypted state values are then encrypted using
AES-256-GCM
. Read the change log and Configuration and Secrets to learn more about Pulumi's configuration and secrets management system.PULUMI_CONFIG_PASSPHRASE="your-passphrase"
- PULUMI_CONFIG_PASSPHRASE_FILE
An alternative method to providing
PULUMI_CONFIG_PASSPHRASE
. Set this to the path of a file that contains the passphrase value.PULUMI_CONFIG_PASSPHRASE_FILE="/tmp/passphrase.txt"
- PULUMI_CONSOLE_DOMAIN
Overrides the domain used when generating links to the Pulumi Cloud.
PULUMI_CONSOLE_DOMAIN="yourhost.domain.com"
- PULUMI_DEBUG_PROMISE_LEAKS
As of
v0.12.2
, the promise leak experience has been improved and shows a simple error message. Set this environment variable to get more verbose error messages when debugging promise leaks.PULUMI_DEBUG_PROMISE_LEAKS=true
- PULUMI_ENABLE_LEGACY_APPLY
As of
1.0.0-beta1
, input properties are no longer propagated to missing output properties during apulumi preview
. If this causes issues in your Pulumi program, set this totrue
to enable the old behavior.PULUMI_ENABLE_LEGACY_APPLY=true
- PULUMI_ENABLE_LEGACY_DIFF
As of
v0.17.23
, the detection of differences between the actual and desired state of a resource is left entirely up to that resource's provider. This change can expose bugs in resource providers that lead to diffs being present even if the desired configuration matches the actual state of the resource. Set this to1
ortrue
to enable the old diff behavior.PULUMI_ENABLE_LEGACY_DIFF=true
- PULUMI_ENABLE_LEGACY_PLUGIN_SEARCH
As of
v0.16.18
, a fix has been released to prevent the Pulumi CLI from loading the newest plugin for a resource provider instead of the requested version. This has the potential to disrupt users that previously had working configurations. Set this environment variable to opt into the legacy plugin load behavior.PULUMI_ENABLE_LEGACY_PLUGIN_SEARCH=true
- PULUMI_HOME
Overrides the folder where the Pulumi CLI stores its artifacts: plugins, workspaces, templates, and credentials file. By default, artifacts are stored next to Pulumi binaries in
~/.pulumi
.PULUMI_HOME="/path/to/artifacts"
- PULUMI_PREFER_YARN
Set this environment variable to opt-in to using
yarn
instead ofnpm
for installing Node.js dependencies.PULUMI_PREFER_YARN=true
- PULUMI_PYTHON_CMD
As of
v0.16.6
, the Pulumi CLI usespython3
instead ofpython
when running a Python program. Set this environment variable to run a different Python binary.PULUMI_PYTHON_CMD="python-version-binary"
- PULUMI_SKIP_CONFIRMATIONS
As of
v2.0.0
, an explicit confirmation was required when running in non-interactive mode. Set this environment variable to make that explicit confirmation.PULUMI_SKIP_CONFIRMATIONS=true
- PULUMI_SKIP_UPDATE_CHECK
As of
v0.17.9
, you may skip the Pulumi version update check by setting this environment variable.PULUMI_SKIP_UPDATE_CHECK=true
- NO_COLOR
The presence of this environment variable (regardless of its value) strips color ANSI codes from text output to the terminal. See https://no-color.org/ for more details. When used with Automation API, this environment variable will strip color directives from the event logs.
NO_COLOR
Thank you for your feedback!
If you have a question about how to use Pulumi, reach out in Community Slack.
Open an issue on GitHub to report a problem or suggest an improvement.