`pulumi package new` bootstraps a Pulumi package from a template
Introduced 2026-05-08 · score 0.96
HOW TO USE IT
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.
pulumi package new <template> --name <name> --description <description> --dir <directory> --yesWHY THIS HELPS
When starting a Pulumi package from a template, bootstrap it with `pulumi package new`.
REQUIREMENTS AND LIMITATIONS
- 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.
FIRST-PARTY EVIDENCE
- 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/
Check the installed version and the source before using it. Entry JSON