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

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

1 Like