From 0852fc7f84d39144d793d4389e8139df0739aab5 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Wed, 10 Dec 2025 09:49:47 +0100 Subject: [PATCH] chore(pulumi): add env vars for cli --- knowledge base/pulumi.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/knowledge base/pulumi.md b/knowledge base/pulumi.md index 0617b5b..89de5c8 100644 --- a/knowledge base/pulumi.md +++ b/knowledge base/pulumi.md @@ -50,6 +50,21 @@ Projects (and hence stacks) [can be nested][monolith vs micro-stack]. Target single resources with `-t`, `--target`. Target also those that depend on them with `--target-dependents`. +Since v3.208.0, all CLI arguments can be set via environment variables by setting `PULUMI_OPTION_`-prefixed variables +followed by the capitalized snake case version of the argument name.
+Boolean arguments can be set using either `true` and `false`, or `1` and `0`. + +
+ +| Variable | CLI flag | +| ------------------------------ | --------------------------- | +| `PULUMI_OPTION_PARALLEL=8` | `--parallel 8` | +| `PULUMI_OPTION_REFRESH=true` | `--refresh` | +| `PULUMI_OPTION_YES=1` | `--yes` | +| `PULUMI_OPTION_TARGET=foo,bar` | `--target foo --target bar` | + +
+
Setup