diff --git a/docs/use/plan-export.md b/docs/use/plan-export.md index be5f7093..86bcc405 100644 --- a/docs/use/plan-export.md +++ b/docs/use/plan-export.md @@ -29,6 +29,9 @@ $request = New-IdleRequest -LifecycleEvent 'Joiner' -CorrelationId (New-Guid) -A $plan = New-IdlePlan -WorkflowPath ./workflows/joiner.psd1 -Request $request +# Create the output directory if it does not already exist +New-Item -ItemType Directory -Force -Path ./artifacts | Out-Null + Export-IdlePlan -Plan $plan -Path ./artifacts/plan.json ```