#Add-SPOWorkflowDefinition Adds a workflow definition ##Syntax
Add-SPOWorkflowDefinition -Definition <WorkflowDefinition> [-DoNotPublish [<SwitchParameter>]] [-Web <WebPipeBind>]##Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Definition | WorkflowDefinition | True | The workflow definition to add. |
| DoNotPublish | SwitchParameter | False | By default workflow definitions will be publish, specify this switch to override that. |
| Web | WebPipeBind | False | The web to apply the command to. Omit this parameter to use the current web. |
| ##Examples |
###Example 1
Add-SPOWorkflowDefinition -Definition $wfdefAdds an existing workflow definition, retrieved by Get-SPOWorkflowDefinition, to a site.