microsoft.dotnet-httprepl is already installed but httprepl command not found in mac

Viewed 1484

I installed httprepl with command

dotnet tool install -g Microsoft.dotnet-httprepl 

httprepl is listed as installed package with command

dotnet tool list -g

Package Id                     Version      Commands
----------------------------------------------------
microsoft.dotnet-httprepl      5.0.2        httprepl

but when i run command httprepl it says command not found.

httprepl
zsh: command not found: httprepl

How can I run httprepl on mac?

1 Answers

In ~/.zshrc write:

export PATH="$HOME/.dotnet/tools:$PATH"

That should do it.

Related