You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/cli.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -815,7 +815,7 @@ The `launch` command launches a pipeline run in Seqera Platform. To log in and c
815
815
: A mnemonic name to assign to the run.
816
816
817
817
`-main-script`
818
-
: The script file to be executed when launching a project directory or repository.
818
+
: The script file to execute when launching a project directory or repository. Should be a path relative to the project root, e.g. `-main-script subproject/main.nf`.
819
819
820
820
`-params-file`
821
821
: A JSON or YAML file to load parameters from.
@@ -918,6 +918,11 @@ The `lint` command parses and analyzes the given Nextflow scripts and config fil
918
918
: File pattern to exclude from linting (default: `.git, .lineage, .nextflow, .nf-test, nf-test.config, work`).
919
919
: Can be specified multiple times.
920
920
921
+
`-files-from`
922
+
: :::{versionadded} 26.04.0
923
+
:::
924
+
: Read list of paths to lint from a text file. Use `-` to read from standard input.
925
+
921
926
`-format`
922
927
: Format scripts and config files that have no errors.
923
928
@@ -1598,7 +1603,8 @@ The `run` command is used to execute a local pipeline script or remote pipeline
1598
1603
: Library extension path.
1599
1604
1600
1605
`-main-script` (`main.nf`)
1601
-
: The script file to be executed when launching a project directory or repository.
1606
+
: The script file to execute when launching a project directory or repository. Should be a path relative to the project root, e.g. `-main-script subproject/main.nf`.
1607
+
: The project `nextflow.config` is always read from the project root regardless of the main script location.
Copy file name to clipboardExpand all lines: docs/reference/config.md
-3Lines changed: 0 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1418,9 +1418,6 @@ The following settings are available:
1418
1418
`seqera.executor.autoLabels`
1419
1419
: When `true`, automatically adds workflow metadata labels to the session with the `nextflow.io/` prefix (default: `false`). The following labels are added: `projectName`, `userName`, `runName`, `sessionId`, `resume`, `revision`, `commitId`, `repository`, `manifestName`, `runtimeVersion`. A `seqera.io/runId` label is also added, computed as a SipHash of the session ID and run name.
1420
1420
1421
-
`seqera.executor.labels`
1422
-
: Custom labels to apply to AWS resources for cost tracking and resource organization. Labels are propagated to ECS tasks, capacity providers, and EC2 instances. When used together with `autoLabels`, user-defined labels take precedence over auto-generated labels.
1423
-
1424
1421
`seqera.executor.machineRequirement.arch`
1425
1422
: The CPU architecture for task execution, e.g. `'x86_64'` or `'arm64'`.
Copy file name to clipboardExpand all lines: docs/reference/env-vars.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,6 +123,11 @@ The following environment variables control the configuration of the Nextflow ru
123
123
: The file storage path against which relative file paths are resolved.
124
124
: For example, with `NXF_FILE_ROOT=/some/root/path`, the use of `file('hello')` will be resolved to the absolute path `/some/root/path/hello`. A remote root path can be specified using the usual protocol prefix, e.g. `NXF_FILE_ROOT=s3://my-bucket/data`. Files defined using an absolute path are not affected by this setting.
125
125
126
+
`NXF_FUSION_TRACE`
127
+
: :::{versionadded} 26.04.0
128
+
:::
129
+
: When set to `true`, collect task resource metrics (CPU, memory, I/O) from the Fusion trace file (`.fusion/trace.json`) produced in the task work directory, replacing the metrics collected by the default bash command-trace wrapper. Requires Fusion to be enabled. GPU metrics from Fusion are always collected regardless of this setting.
130
+
126
131
`NXF_HOME`
127
132
: Nextflow home directory (default: `$HOME/.nextflow`).
thrownewAbortOperationException("Not a valid project name: $name")
420
421
422
+
if( mainScript )
423
+
thrownewAbortOperationException("Not a valid project name: $name -- Project name must be a directory when main script is provided")
424
+
421
425
if( parts.size()==2 ) {
422
426
mainScript = last
423
427
parts = [ parts.first() ]
@@ -462,6 +466,9 @@ class AssetManager implements Closeable {
462
466
if( !isUrl )
463
467
returnnull
464
468
469
+
if( repository.endsWith('.nf') )
470
+
thrownewAbortOperationException("Repository URL must not end with a script file extension (.nf) -- use `-main-script` to specify the relative script path")
0 commit comments