{
  "slug": "node-js-automation-api-exposes-pulumi-new-c1ae73209d9f",
  "title": "Node.js Automation API exposes `pulumi new`",
  "tools": [
    "pulumi"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-04-08T20:50:18.000Z",
  "announced_at": "2026-04-08T20:50:18.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When creating a project through the Node.js Automation API, call the generated interface’s `new()` method with `PulumiNewOptions`; pass a template name or URL as the optional second argument. The method invokes `pulumi new` with `--yes` and maps supplied options to CLI flags.",
    "examples": [
      "api.new({ name: \"<project-name>\", language: \"<language>\" }, \"<template-or-url>\")"
    ],
    "gotchas": [
      "Version: 3.230.0",
      "options (required): `PulumiNewOptions`; the method adds `--yes` automatically.",
      "templateOrUrl: Template name or URL passed as the command argument after flags.",
      "options.name: Project name; if omitted, `pulumi new` prompts for it.",
      "options.language: Language to use for Pulumi AI; documented values: TypeScript, JavaScript, Python, Go, C#, Java, or YAML.",
      "options.dir: Directory for the generated project; defaults to the current directory.",
      "options.stack: Existing stack or stack to create; if omitted, `pulumi new` prompts for it.",
      "options.generateOnly: Generate project files only; skip stack creation, config saving, and dependency installation.",
      "options.secretsProvider: Provider for encrypting and decrypting secrets; documented values: default, passphrase, awskms, azurekeyvault, gcpkms, hashivault."
    ]
  },
  "why_it_matters": "Create a new Pulumi project from a Node.js Automation API workflow.",
  "sources": [
    "https://github.com/pulumi/pulumi/releases/tag/v3.230.0",
    "https://github.com/pulumi/pulumi/pull/22421",
    "https://github.com/pulumi/pulumi/blob/v3.230.0/sdk/nodejs/automation/interface/index.ts"
  ],
  "rank": 0.95021,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave1b-20261016",
    "verdict_id": "wave1b-20261016:wave1b-20261016-0ee08547b882a88e-2:gate",
    "evidence_hash": "a08fb59d814c69aceaa8e353402acdfd5824d03ad9bb1b40326db537f850dd60"
  },
  "review": {
    "draft_hash": "0579fcce945969ee152c32a61355185e24114d219a52aea9a3ce646312ada7c5",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-20261016:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.95 >= 0.9; 2 needed) and Jev gave 0.73 (>= 0.6 needed)."
  }
}
