I’m following the instructions for installing / using temporalite via Application development - Foundations | Temporal Documentation and
end up with a zsh: command not found: temporalite.
Steps to Reproduce:
- go install github.com/temporalio/temporalite/cmd/temporalite@latest
- temporalite start --namespace foo
A Temporal Cluster running at
http://127.0.0.1:7233 and the Temporal Web UI at
The second command returns ‘zsh: command not found: temporalite’
go version go1.19 darwin/amd64
macOS Monsterey version 12.6
Hi @rain, welcome to the Temporal community
Can you check if you have your GOPATH set? Try in your terminal:
go env GOPATH
(it should be something like
/Users/<your_user>/go if you are on Mac.
Then add that directory to your PATH in
~/.zshrc, for example:
- open ~/.zshrc
- on bottom of file add:
Save file and open another terminal and try running
temporalite start --namespace default -f my_test.db
(or whatever you want to call your default created namespace) again.
Just to add,
go install command places the executable (in this case
temporalite) into the $GOPATH/bin directory, so you have to have it on the path (if you don’t you can still go to $GOPATH/bin and run the temporalite command from there if you wanted)
Hope this helps.
User beware! I applied these and then totally forgot to close / reopen / restart my terminal - so of course the changes didn’t take affect … until I did. And this totally works. Thanks, @tihomir!! !