Administer the deployment using Windows PowerShell
With Windows PowerShell you can easily run deployment commands to change the configuration of your deployment, like tasks that can be performed from the Deployment Manager user interface. You can also use the methods described in the Dynamics 365 Customer Engagement Web Services to perform these tasks. The PowerShell cmdlets are installed on the computer when you install a Full Server role or when you install the Deployment Tools server role, if you’re installing individual server roles. To execute commands, you must first register the Dynamics 365 Customer Engagement (on-premises) commands with PowerShell. This topic describes how to do this plus additional tasks to help you use PowerShell.
Find help about the PowerShell cmdlets for Dynamics 365 Customer Engagement (on-premises) at Microsoft Dynamics 365 PowerShell Reference.
For more information about using PowerShell, see PowerShell.
For more information about the programmatic use of the Deployment Web Service, see MSDN: Administer the deployment using the deployment web service.