npm/README.md
Lazily install the Pulumi CLI via npx.
npx pulumi up
Note: This is NOT the Pulumi SDK. If you're writing a Pulumi program you want
@pulumi/pulumiinstead. See the language SDK docs for all supported runtimes.
On first use, the package downloads the Pulumi CLI binary for your platform from
get.pulumi.com and caches it under ~/.pulumi/versions/.
Subsequent invocations use the cached binary directly.
The npm package version matches the Pulumi CLI version exactly. Pin to a specific release by specifying the version:
npx [email protected] up
Binaries are cached at ~/.pulumi/versions/<version>/bin/, shared with the
Automation API so
both never download the same version twice. Set PULUMI_HOME to use a different
base directory:
PULUMI_HOME=/path/to/pulumi npx pulumi up
To clear the cache:
rm -rf ~/.pulumi/versions