Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Pulumi CLI

$ pulumi Official High Risk
Pulumi · Cloud & Infra · Apache-2.0 · macos / linux / windows

Pulumi 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.

FCRS-1.0 Score
88 /100
Good
Medium Confidence
Zero-Friction Install
brew install pulumi/tap/pulumi
CLI vs MCP Decision CLI Preferred vs MCP

pulumi executes local TypeScript/Python/Go IaC programs to compute preview --json diffs on the host.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 23 / 25

Supports --json, --non-interactive, --yes, and --color never consistently across preview, up, and stack commands.

  • Supports --json, --non-interactive, --color never, and preview --json
Trust & Safety 21 / 25

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 --json dry-run
Setup & Portability 13 / 15

Single Go CLI binary, though executing projects requires the chosen language runtime (Node, Python, Go, etc.).

  • Go CLI binary + target project language runtime
Utility & Efficiency 13 / 15

Full general-purpose programming languages for IaC with clean JSON summary output.

  • Multi-language IaC with structured preview --json
Maintenance & Lineage 9 / 10

Official pulumi/pulumi repository actively maintained under Apache-2.0.

  • Official pulumi/pulumi repository
Docs & Verifiability 9 / 10

Extensive pulumi.com/docs/iac/cli/ docs and --help.

  • Official Pulumi CLI command reference

Security, Auth & Guardrails

Auth Modes
Env API Key Config File OAuth Browser
Credential Storage

Stores Pulumi Cloud tokens in ~/.pulumi/credentials.json, or reads PULUMI_ACCESS_TOKEN and PULUMI_CONFIG_PASSPHRASE.

Side Effects
Read-Only Local Write Remote Write Destructive Billing Impact
Cost & Quotas

CLI is free (Apache-2.0); Pulumi Cloud has free individual/paid team tiers, and cloud resources incur provider billing.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Preview infrastructure changes as JSON
pulumi preview --json --non-interactive --color never

Computes expected resource creates, updates, and replacements in JSON without applying.

Read stack outputs in JSON
pulumi stack output --json --non-interactive

Fetches current stack outputs (omit --show-secrets unless explicitly needed).

Controlled Writes & Previews

Update an explicit stack non-interactively after preview
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 --json flags.
  • + pulumi preview --json returns structured steps and changeSummary before mutation.
  • + Stack secrets remain masked unless --show-secrets is explicitly passed.

Caveats & Pitfalls

  • ! Requires PULUMI_ACCESS_TOKEN or PULUMI_CONFIG_PASSPHRASE set in env for headless runs.
  • ! Requires matching language runtime dependencies (node_modules, .venv) installed locally.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI