If `dotnet ef` has not been installed, install it as a global tool:
```dotnetcli
dotnet tool install --global dotnet-ef
```
For more information on the CLI for EF Core, see [EF Core tools reference for .Net CLI](/ef/core/miscellaneous/cli/dotnet).