Pulumi Automation API adds `install` for NodeJS, Python, and Go
When a NodeJS, Python, or Go Automation API workflow needs the Pulumi CLI at runtime, call that language’s `install` interface to download and install it. The default install uses the CLI version matching the SDK and places it under `~/.pulumi/versions/<version>`; pass the returned command to the workspace that runs the stack.
const pulumiCommand = await PulumiCommand.install();
const stack = await LocalWorkspace.createOrSelectStack(args, { pulumiCommand });