We can use the below commands to create a solution file and a add a sqlproject file to it
Code:
dotnet new sln -n MyDBSolution
Code:
dotnet sln MyDBSolution.sln add MyDatabase.sqlproj