{{/* Generates a language chooser containing commands for `pulumi new`, using frontmatter obtained from the surrounding content file. */}} {{ $prefix := .Page.Params.template.prefix }} {{ $dirname := .Page.Params.template.dirname }} {{ $languages := .Page.Params.template.languages }}
{{/* The formatting below (specifically what's contained within the `pre` tags) is important because it controls how the code snippet is rendered on-page in terms of line breaks, tabs, spaces, etc. The Prettier formatter mangles this spacing, so the formatting needs to be ignored. */}} {{ range $language := $languages }} {{ $templateName := (printf "%s-%s" $prefix $language) }}
$ mkdir {{ $dirname }} && cd {{ $dirname }}
$ pulumi new {{ $templateName }}
Alternatively, you can create and configure a new project with this template ({{ $templateName }}) in the Pulumi Service.
{{ end }}