Net Core: Use Command Line to Change 'Default Project' in 'Package Manager Console' Nuget

How do I change the Default Project through Package Manager Console? What is the command line in PM> instead of moving mouse dropdown, and selecting item? Is there command line?

enter image description here

Context: We eventually want to run Powershell scripts, to rescaffold all our 5 databases to the project folders in Entity Framework.


You can achieve the very same result by using the -Project parameter of the migration commands in Package Manager Console.

Entity Framework Core tools reference - Package Manager Console in Visual Studio

Both add-migration and update-database commands have the common parameters: -Project and -StartupProject, so you can write a complete migration command/script what are unaware what are the dropdown settings in the PM window.