Skip to main content

nextflow config

Print the resolved pipeline configuration.

Usage​

$ nextflow config [options] [project name or path]

Description​

The config command prints the project's resolved configuration, that is, the settings from nextflow.config and any profiles and parameters Nextflow applies when it runs the pipeline. See Config profiles for more information.

Options​

-flat​

Print config using flat notation.

-h, -help​

Print the command usage.

-profile​

Choose a configuration profile.

-properties​

Print config using Java properties notation.

-r, -revision​
Added in version 26.04

Project revision. Can be a git branch, tag, or commit SHA number.

-a, -show-profiles​

Show all configuration profiles.

-sort​

Sort config attributes.

-value​
Added in version 23.10

Print the value of a config option, or fail if the option is not defined.

Examples​

Print the resolved config using the default group key-value notation:

$ nextflow config

docker {
enabled = true
}

process {
executor = 'local'
}

Print the config using flat notation:

$ nextflow config -flat

docker.enabled = true
process.executor = 'local'

Print the config using Java properties notation:

$ nextflow config -properties

docker.enabled = true
process.executor = local

Print the value of a specific configuration property:

$ nextflow config -value process.executor
local

Print all profiles from the project's configuration:

$ nextflow config -show-profiles

docker {
enabled = true
}

profiles {
standard {
process {
executor = 'local'
}
}
cloud {
process {
executor = 'cirrus'
container = 'cbcrg/imagex'
}
}
}