to downgrade from v9 to latest v8, I've used:
dotnet tool update dotnet-ef --version 8.0.11 --global --allow-downgrade