Skip to content

zsh 'dotnet' command not found


1. Download and install .NET (version 8 or 9)

Section titled “1. Download and install .NET (version 8 or 9)”

Download and install .NET if you haven’t already.

Then close and reopen your terminal to test the command again.


To add ‘dotnet’ to your PATH, run the following command:

Terminal window
echo "export PATH=\"/usr/local/share/dotnet:\$PATH\"" >> ~/.zshrc
source ~/.zshrc

If you are still having issues, try following the steps on the 3. .zshrc permission issues page first, then come back to repeat the steps above.