You can use the DeploymentManager.exe command line interface to automate Deployment Manager server tasks.
If you installed Deployment Manager to the default location, you can find DeploymentManager.exe in:
C:\Program Files (x86)\Red Gate\Deployment Manager\Tools
In the following examples:
To create a release, at the command prompt, we navigate to the location of DeploymentManager.exe and then run:
deploymentmanager create-release --server=http://deploymentmanager --apiKey=NRN94PPM3DZGHCQSIJRAPWE7TG --project=MyProject |
To create and then deploy the release to our Staging environment, we run:
deploymentmanager create-release --server=http://deploymentmanager --apiKey=NRN94PPM3DZGHCQSIJRAPWE7TG --project=MyProject --deployto=Staging --waitfordeployment |
If we want to deploy the release using a specific version (v1.1.0.1, in this example) of our WidgetDatabase package, we run:
deploymentmanager deploy-release --server=http://deploymentmanager --apiKey=NRN94PPM3DZGHCQSIJRAPWE7TG --project=MyProject --deployto=Staging --packageversion=WidgetDatabase=1.1.0.1 --releaseversion=2.0 --waitfordeployment |
For a full list of DeploymentManager.exe commands and options, see DeploymentManager.exe syntax.