pulumi policy list and policy group list support --output
Introduced 2026-07-01 · score 0.95
HOW TO USE IT
When a script lists policy packs or policy groups, pass `--output <format>` to select the output format. The documented formats are `default` and `json`.
pulumi policy list [<org-name>] --output jsonpulumi policy group list [<org-name>] --output jsonWHY THIS HELPS
When listing policies or policy groups in a script, request output in the needed format.
REQUIREMENTS AND LIMITATIONS
- Version: 3.249.0
- --output <format>: Select output format: `default` or `json`; default is `default`.
- [org-name]: Organization whose policy packs or policy groups are listed.
FIRST-PARTY EVIDENCE
- https://github.com/pulumi/pulumi/releases/tag/v3.249.0
- https://www.pulumi.com/docs/iac/cli/commands/pulumi_policy_list/
- https://www.pulumi.com/docs/iac/cli/commands/pulumi_policy_group_list/
Check the installed version and the source before using it. Entry JSON