https://pulumi.com logo
Title
g

gifted-bird-61963

08/24/2021, 6:37 PM
Is it possible to run pulumi new against a template on the file system (as opposed to a repository or canned template)? I found the PULUMI_TEMPLATE_LOCATION environment variable in source, but I can't figure out how to use it... or if it's even supposed to be used.
g

green-stone-37839

08/24/2021, 6:45 PM
You can use
pulumi new ~/path/to/template
to create a project from a local template.
👀 1
g

gifted-bird-61963

08/24/2021, 6:50 PM
Am i mistaken, or does this have to be an absolute path?
because ./local/dir didn't work, but /absolute/path did
g

green-stone-37839

08/24/2021, 6:59 PM
Good question and I don't know off the top of my head.
Relative path seems to work for me although not using
./local/dir
~/local/dir
works, as well as,
../local/dir
. Im on OSX btw.
g

gifted-bird-61963

08/24/2021, 7:37 PM
interesting. ~ makes sense because it autoexpands, but ../ is surprising. im on osx too, but i a devcontainer on ubuntu. incidentally, im set, i can figure out my path 😉