sincecutoff.com
← all changes

Node.js Automation API exposes `pulumi new`

Introduced 2026-04-08 · score 0.95

HOW TO USE IT

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.

api.new({ name: "<project-name>", language: "<language>" }, "<template-or-url>")

WHY THIS HELPS

Create a new Pulumi project from a Node.js Automation API workflow.

REQUIREMENTS AND LIMITATIONS

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

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card