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:
- Source site URL
- Workflow name
- Filename and path where you would like to save the exported file
- Source list name
- Account credentials and domain
To export a workflow
-
Open the SharePoint 2013 Management Shell on your SharePoint 2013 development environment.
- 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:
- Workflow name
- Filename and path where you can find the nwf file you wish to deploy
- Target site URL
- Target list name
- Account credentials and domain
To deploy a workflow
- Open the SharePoint 2013 Management Shell on your SharePoint 2013 development environment.
- 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.