{
  "slug": "pulumi-package-new-bootstraps-a-pulumi-package-from-a-template-d3a373caf3da",
  "title": "`pulumi package new` bootstraps a Pulumi package from a template",
  "tools": [
    "pulumi"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-05-08T20:51:52.000Z",
  "announced_at": "2026-05-08T20:51:52.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When starting a Pulumi package from a template, run `pulumi package new` with the template name; add `--name`, `--description`, and `--dir` to set package details and destination, and `--yes` to skip prompts.",
    "examples": [
      "pulumi package new <template> --name <name> --description <description> --dir <directory> --yes"
    ],
    "gotchas": [
      "Version: 3.237.0",
      "template|url: Optional positional argument: a template name, local template directory, or Git URL. Without it, suggested templates are presented for interactive selection.",
      "--name, -n: Package name; prompts if omitted.",
      "--description, -d: Package description; prompts if omitted.",
      "--dir: Directory for the generated package; defaults to the current directory.",
      "--yes, -y: Skip prompts and proceed with default values.",
      "--force, -f: Allow generation in a non-empty directory.",
      "--generate-only, -g: Generate the package without installing dependencies.",
      "--offline, -o: Use locally cached templates without network requests.",
      "Prerequisite: Install the Pulumi CLI.",
      "Docs conflict: The command reference is generated for Pulumi CLI v3.257.0, later than the card's v3.237.0; the page does not identify which options were available in v3.237.0."
    ]
  },
  "why_it_matters": "When starting a Pulumi package from a template, bootstrap it with `pulumi package new`.",
  "sources": [
    "https://github.com/pulumi/pulumi/releases/tag/v3.237.0",
    "https://www.pulumi.com/docs/iac/cli/commands/pulumi_package_new/",
    "https://www.pulumi.com/docs/install/"
  ],
  "rank": 0.96017,
  "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-3438a1e2b3af7a6e-4:gate",
    "evidence_hash": "8125dfa10f2de296224b69608b6a79efe24a70512caa94b2d0ddf977dffd2b63"
  },
  "review": {
    "draft_hash": "b8917a0df044dce582ee5c6b5b15b07b5914e8687693f610172469d3020dd40b",
    "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.96 >= 0.9; 2 needed) and Jev gave 0.72 (>= 0.6 needed)."
  }
}
