mivano / azure-cost-cli

CLI tool to perform cost analysis on your Azure subscription
Apache License 2.0
827 stars 104 forks source link

zsh: command not found: azure-cost #163

Open swapnavetcha opened 1 week ago

swapnavetcha commented 1 week ago

Hi

I have installed the cli using % dotnet tool install --global azure-cost-cli Tool 'azure-cost-cli' is already installed.

when i run >azure-cost it says >zsh: command not found: azure-cost

i tried with ./azure-cost --help still the same error

Im using mac

kindly help

welcome[bot] commented 1 week ago

Thanks for opening your first issue! Reports like these help improve the project!

mivano commented 1 week ago

I cannot reproduce (using a Mac as well). So check with dotnet tool list --global if it is indeed listed.

And check if you are not running as a sudo user. So that it installs it somewhere else and not on your user path.

If that does not help; try uninstall dotnet tool uninstall --global azure-cost-cli and reinstall.

It might also be an issue with your path definition. It needs to have the tools folder there as well. Then you need to add export PATH="$PATH:$HOME/.dotnet/tools/"

See https://stackoverflow.com/questions/69894735/zsh-command-not-found-dotnet-ef