Use PowerShell to Export and Deploy a Workflow

This topic describes how to use PowerShell to export and deploy a workflow.

You can use the NWAdmin PowerShell snap-in available through the SharePoint 2013 Management Shell on your on your SharePoint 2013 development to export and deploy a Nintex workflow.

Export a workflow

You can export a list workflow. You will need the following pieces of information to export the workflow:

To export a workflow

  1. Open the SharePoint 2013 Management Shell on your SharePoint 2013 development environment.

  2. Type:
    NWAdmin.exe -o ExportWorkflow -siteUrl targetSiteUrl -workflowName workflowName -filename fileToSave -workflowType list -list listName -username username -password password -domain domain

For more information, refer "ExportWorkflow" in the NWAdmin Guide.

Deploy a workflow

You can deploy a workflow. You will need the following pieces of information to deploy the workflow:

To deploy a workflow

  1. Open the SharePoint 2013 Management Shell on your SharePoint 2013 development environment.
  2. Type:
    NWAdmin.exe -o DeployWorkflow -workflowName workflowName -nwfFile fileToSave -siteUrl targetSiteUrl -targetList targetList -saveOnly -saveIfCannotPublish -overwrite -skipValidation -username username -password password -domain domain

For more information, refer "DeployWorkflow" in the NWAdmin Guide.

Related information

NWAdmin Guide

Modifying and Extending Nintex Workflow and Forms