Deployment Manager 2

Automation and the command line

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

Examples using Deployment Manager.exe

In the following examples:

  • our Deployment Manager server URL is http://deploymentmanager/
  • the API key for our user account is NRN94PPM3DZGHCQSIJRAPWE7TG
  • the project we want to deploy is MyProject

Creating a release

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

Creating and deploying a release

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

Deploying a release with specific package versions

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= --releaseversion=2.0 --waitfordeployment

Command line syntax

For a full list of DeploymentManager.exe commands and options, see DeploymentManager.exe syntax.

Didn't find what you were looking for?