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

Great, those are incredibly useful to know about!