Yevai NPM Packages
    Preparing search index...

    Function pulumiCloudExecSyncShell

    • 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 ...")

      Returns string

      The trimmed string output from stdout.

       const stackId = `${this.organization}/${this.name}`;
      const cloudStackOutputs = JSON.parse(
      pulumiCloudExecSyncShell(`pulumi stack output --stack ${stackId} --json --show-secrets`)
      );

      If the command execution fails or times out.