As per the following comment by @bricelam:
https://github.com/aspnet/EntityFrameworkCore/issues/7353#issuecomment-270718816
I ran this:
dotnet ef database update --startup-project ../<my_project> --environment Development
This gives:
Unrecognized option '--environment'
I'm using:
.NET Command Line Tools (2.1.504)
The --environment options was removed in version 2.0. Use this instead:
set ASPNETCORE_ENVIRONMENT=Development
dotnet ef database update --startup-project ../<my_project>
Most helpful comment
The
--environmentoptions was removed in version 2.0. Use this instead: