Assuming you've already got a dacpac file that you want to deploy, you can use SQLPackage.exe to deploy it. Using PowerShell:
& "C:\Program Files (x86)\Microsoft SQL Server\110\DAC\bin\SqlPackage.exe" /sf:"MyProject.Database.dacpac" /a:publish /TargetConnectionString:$DBConnectionString /p:VerifyDeployment=true /p:CreateNewDatabase=$CreateNewDatabase | Out-Default
This assumes the script is parallel with your dacpac file, and the following variables are defined:
- $DBConnectionString - Database connection string.
- $CreateNewDatabase - Whether to create a new database if it does not exist.
There are more options you can pass in: http://msdn.microsoft.com/en-us/library/hh550080%28v=vs.103%29.aspx