I wanted to play with the Beego webframework. A simple command in the shell can setup a new project directory. If I run the following commandin Window's Powershell I get an error, because the command is unknown:
bee new beego_project
How can I register this command to make use of it?
Make sure your environment variables are correctly set in your Powershell setup.
See for instance "how to modify GOPATH
in powershell"
GOPATH
needs to be set%GOPAHT%\bin
needs to be added to the PATH
and bee
must be in that folder.Note that you can set those variables in your %USERPROFILE%\Documents\WindowsPowerShell\Profile.ps1
, which is similar to a ~\.bashrc
.
The OP adds in the comments:
I just needed to add
%GOPATH%\bin
to the%PATH%
variable.
Now it works also under%GOPATH%