Executes a shell command using the Pulumi CLI with the appropriate environment context.
This helper ensures that Pulumi commands are run with the correct environment variables
(tokens, backend URLs, organization settings) propagated from the host environment.
It handles the differences between running in a local development environment versus
a test environment (Vitest).
Parameters
command: string
The shell command to execute (e.g., "pulumi stack output ...")
Executes a shell command using the Pulumi CLI with the appropriate environment context.
This helper ensures that Pulumi commands are run with the correct environment variables (tokens, backend URLs, organization settings) propagated from the host environment. It handles the differences between running in a local development environment versus a test environment (Vitest).