I'm new to Go. How can I run the CLI from the comm...
# golang
t
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
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
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
Yeah, I meant the Docker image. I was using it to open a GitHub Codespaces instance to test.
@billowy-army-68599 Thanks. Works now. 🙂