Pulumi CLI
$ pulumi Official High RiskPulumi CLI (pulumi) manages cloud infrastructure written in TypeScript, Python, Go, C#, Java, or YAML, offering --json across preview, up, stack ls, and stack output, --non-interactive, --yes, and --color never.
brew install pulumi/tap/pulumi pulumi executes local TypeScript/Python/Go IaC programs to compute preview --json diffs on the host.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports --json, --non-interactive, --yes, and --color never consistently across preview, up, and stack commands.
- Supports
--json,--non-interactive,--color never, andpreview --json
pulumi preview --json inspects diffs before up, secrets are encrypted in config/state by default, and --show-secrets is opt-in.
- Encrypted stack secrets and
preview --jsondry-run
Single Go CLI binary, though executing projects requires the chosen language runtime (Node, Python, Go, etc.).
- Go CLI binary + target project language runtime
Full general-purpose programming languages for IaC with clean JSON summary output.
- Multi-language IaC with structured
preview --json
Official pulumi/pulumi repository actively maintained under Apache-2.0.
- Official
pulumi/pulumirepository
Extensive pulumi.com/docs/iac/cli/ docs and --help.
- Official Pulumi CLI command reference
Security, Auth & Guardrails
Stores Pulumi Cloud tokens in ~/.pulumi/credentials.json, or reads PULUMI_ACCESS_TOKEN and PULUMI_CONFIG_PASSPHRASE.
CLI is free (Apache-2.0); Pulumi Cloud has free individual/paid team tiers, and cloud resources incur provider billing.
# Pulumi CLI Agent Rules - ALWAYS pass `--non-interactive --color never` and pin `--stack <name>` explicitly. - Run `pulumi preview --json` first and inspect `changeSummary` for `delete` or `replace` steps. - Never pass `--show-secrets` on `stack output` or run `pulumi destroy` without human approval.
Agent-Ready Command Recipes
Safe Read-Only Queries
pulumi preview --json --non-interactive --color never
Computes expected resource creates, updates, and replacements in JSON without applying.
pulumi stack output --json --non-interactive
Fetches current stack outputs (omit --show-secrets unless explicitly needed).
Controlled Writes & Previews
pulumi up --stack dev --yes --non-interactive --color never
Targets the dev stack explicitly with non-interactive confirmation.
Strengths for Agents
- + First-class
--non-interactive,--color never, and--jsonflags. - +
pulumi preview --jsonreturns structuredstepsandchangeSummarybefore mutation. - + Stack secrets remain masked unless
--show-secretsis explicitly passed.
Caveats & Pitfalls
- ! Requires
PULUMI_ACCESS_TOKENorPULUMI_CONFIG_PASSPHRASEset in env for headless runs. - ! Requires matching language runtime dependencies (
node_modules,.venv) installed locally.