https://pulumi.com logo
#golang
Title
# golang
t

tall-needle-56640

10/08/2020, 9:01 PM
I'm new to Go. How can I run the CLI from the command line? I deployed the
pulumi/pulum
image, ran
make ensure
and then
make
. Then I tried to run
go run main.go
but I get an error: "./main.go4812: undefined: NewPulumiCmd"
b

billowy-army-68599

10/08/2020, 9:08 PM
are you trying to build the CLI locally, or run a Go pulumi program?
if it's the former, you need to be in the
pkg
folder (where the
go.mod
is) and do:
go run ./cmd/pulumi
s

sparse-park-68967

10/08/2020, 9:14 PM
yeah slightly confused by the mention of the
pulumi/pulumi
image (assuming docker?) and make ensure etc. - docker image just runs the CLI through the entrypoint
t

tall-needle-56640

10/08/2020, 9:28 PM
Yeah, I meant the Docker image. I was using it to open a GitHub Codespaces instance to test.
@billowy-army-68599 Thanks. Works now. 🙂
6 Views