Easiest way to access nextflow run command from within the pipeline?

For logging purposes I would like to access the command used to kick off the pipeline. I know it’s in nextflow.log. Wondering if it is more directly accessible from within the pipeline?

You’re looking for the variable workflow.commandLine.
https://www.nextflow.io/docs/latest/reference/stdlib.html#constants

1 Like

Great, those are incredibly useful to know about!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.