Command Line Syntax |
Top Previous Next |
The syntax to use Pipeline Runner to execute a script from the command line is remarkably simple:
Pipeline Runner Command
The main part of the command is simply the fully qualified path and file name for the Pipeline runner executable, for example:
C:\PipelineRunner\pipelinerunner.exe Note: Using the fully qualified path and file name will allow you to run PipelineRunner regardless of where it is located. Alternatively you could navigate the command prompt to the folder containing the executable and use the program name only. Script File
After the Pipeline Runner Command, leave a space and put the fully qualified path and file name of the script or project to run before any other command line switches, for example:
"C:\Scripts\Test Script.txt"
Scripts should have the extension txt. Projects should have the extension prp.
Command Line Switches
In order to control how the Pipeline Runner works from the command line you can add command line switches. The switches are prefixed with a hyphen, and where a supporting value is required it should be set out as a key-value pair:
-switch=value
The currently available switches are:
Note: Pipeline Runner Studio has the ability to automatically automatically generate the full Command Line with a single click. Examples
Simple run of a script:
C:\PipelineRunner\pipelinerunner.exe "C:\Scripts\Test Script.txt"
Simple run of a script that has a runtime password:
C:\PipelineRunner\pipelinerunner.exe "C:\Scripts\Test Script.txt" -pw="MyPassword"
Using the file switch:
C:\PipelineRunner\pipelinerunner.exe -file=C:\Scripts\Test Script.txt
Validate the script only:
C:\PipelineRunner\pipelinerunner.exe C:\Scripts\Test Script.txt -v
Run the script excluding a single task:
"C:\PipelineRunner\pipelinerunner.exe" "C:\Scripts\Test Script.txt" -e="Task 1"
Run the script excluding multiple tasks:
C:\PipelineRunner\pipelinerunner.exe C:\Scripts\Test Script.txt -e="Task 1|Task 2"
Run the script and write a report to disk:
C:\PipelineRunner\pipelinerunner.exe C:\Scripts\Test Script.txt -r=C:\Documents\Test Script Report.txt
Run the script and write a report to disk including extended error information:
C:\PipelineRunner\pipelinerunner.exe C:\Scripts\Test Script.txt -r=C:\Documents\Test Script Report.txt -xe Important: The examples above are fictitious and the specified files and folders may not exist on your system. The paths and file names should be replaced with your own when you are using the command line syntax. See Also: Automatically Generate a Command Line Run a Script from the Windows Command Line User Sections Tasks Section
|