dotnet ef must be installed as a global or local tool. Most developers will install dotnet ef as a global tool with the following command:
.NET Core CLI
Copy
dotnet tool install --global dotnet-ef
You can also use dotnet ef as local tool. To use it as a local tool, restore the dependencies of a project that declares it as a tooling dependency using a tool manifest file.
Install the .NET Core SDK.
Install the latest Microsoft.EntityFrameworkCore.Design package.
.NET Core CLI
Copy
dotnet add package Microsoft.EntityFrameworkCore.Design