Go to https://dotnet.microsoft.com/en-us/download to download the setup file. I personally prefer the LTS version, so I had chosen .NET 8.0.

Once installation completed, install the EF Core tools globally. The list of versions can be found at https://www.nuget.org/packages/dotnet-ef/8.0.12#versions-body-tab
# install latest version
dotnet tool install --global dotnet-ef
# uninstall
dotnet tool uninstall --global dotnet-ef
# install specific version
dotnet tool install --global dotnet-ef --version 8.0.12
# verify installation
dotnet --version
dotnet-ef --version
