macOS High Sierra
Use automator to run a workflow
You can use the automator
command in Terminal to run a workflow.
Enter the following command to run a workflow with somevariable set to somevalue in the myworkflow.workflow file.
$ automator -D somevariable=somevalue myworkflow.workflow
For more information, see the automator man page.