This article is now archived.
WDL articles now live in the openwdl/wdl-docs GitHub repository. Find the updated documentation on the wdl-docs website.
The command
component is a required property of a task
. The body of the command
block specifies the literal command line to run (basically any command that you could otherwise run in a terminal shell) with placeholders (e.g. ${input_file}
) for the variable parts of the command line that need to be filled in. Note that all variable placeholders MUST be defined in the task
input definitions.
Usage example
command { java -jar myExecutable.jar \ INPUT=${input_file} \ OUTPUT=${output_basename}.txt }