Pulumi Neo adds noninteractive single-prompt output
Introduced 2026-05-19 · score 0.95
HOW TO USE IT
When running one Pulumi Neo prompt in a noninteractive workflow, pass the prompt to `pulumi neo` with `--print` (or `-p`) to print the final response to stdout.
pulumi neo --print "<prompt>"WHY THIS HELPS
Run one Pulumi Neo prompt in a noninteractive coding workflow and capture the final response from stdout.
REQUIREMENTS AND LIMITATIONS
- Version: v3.242.0
- prompt (required): One prompt argument; required in noninteractive mode.
- --print, -p (required): Run a single prompt noninteractively, print the final response to stdout, and exit.
- --approval-mode: Controls tool-call approvals. In print mode, an unset value defaults to `auto`; explicit `manual` is incompatible because there is no UI to approve calls.
- Prerequisite: Authenticate to Pulumi Cloud with `pulumi login`.
- Prerequisite: Run from a directory containing `Pulumi.yaml`.
- Prerequisite: Use Pulumi CLI v3.242.0 or later for this option.
- The option runs a single prompt non-interactively.
FIRST-PARTY EVIDENCE
- https://github.com/pulumi/pulumi/releases/tag/v3.242.0
- https://github.com/pulumi/pulumi/blob/v3.242.0/pkg/cmd/pulumi/neo/neo.go
- https://github.com/pulumi/pulumi/pull/23245
- https://www.pulumi.com/docs/ai/neo/pulumi-cli/
Check the installed version and the source before using it. Entry JSON