esc icon indicating copy to clipboard operation
esc copied to clipboard

cli: Enable multiple environments in one command

Open AaronFriel opened this issue 2 years ago • 0 comments

When a Pulumi stack has multiple environments (see: #193), to create a shell with those same environments in the CLI requires multiple invocations:

Given a stack with:

environments: [foo, bar]

To run a command in the same environment requires running:

pulumi env run foo -- pulumi env run bar -- [command]

We should support opening multiple environments in sequence just as Pulumi IaC does, for example, supporting a comma-delimited list of environments:

pulumi env run foo,bar -- [command]

AaronFriel avatar Dec 06 '23 18:12 AaronFriel