Skip to main content

tw launch

Launch a pipeline

Run tw launch -h to view supported launch options.

Example

Launch a pipeline directly from its repository URL:

tw launch https://github.com/nf-core/rnaseq \
--params-file=./custom_rnaseq_params.yaml \
--config=<path/to/nextflow/conf/file> \
--compute-env=my_aws_ce \
--revision 3.8.1 \
--profile=test,docker

Example output:

Workflow 2XDXxX0vCX8xhx submitted at user workspace.

https://cloud.seqera.io/user/user1/watch/2XDXxX0vCX8xhx
  • Pipeline parameters are defined in custom_rnaseq_params.yaml.
  • The optional --config file overrides values from the pipeline repository's nextflow.conf and ignores values in Platform pipeline or compute environment Nextflow config fields.
  • Use --profile and --revision to select Nextflow profiles and a Git revision.
  • Omit --compute-env to use the workspace primary compute environment.

Nextflow version, syntax parser, and output directory

Override the Nextflow runtime settings saved with the pipeline for a single launch:

tw launch https://github.com/nf-core/rnaseq \
--compute-env=my_aws_ce \
--nextflow-version=<nextflow_version> \
--syntax-parser=v2 \
--output-dir=s3://<bucket name>/results
  • --nextflow-version selects a Nextflow release from the Platform version catalog. The version must meet the minimum required by the compute environment. See Nextflow version for defaults and availability by compute environment type.
  • --syntax-parser accepts v1 or v2. See Enable Nextflow syntax parser v2 for runtime requirements and defaults.
  • --output-dir sets the directory for workflow outputs and is passed to Nextflow as -output-dir. It is separate from a pipeline outdir parameter. See Output directory.

Each option takes precedence over the value stored in the pipeline's launch configuration. Omit an option to keep the stored value.

note

CLI users have the same permissions as in the Platform UI. Launch users can run preconfigured pipelines in accessible workspaces, but they cannot add or run a new pipeline directly from its repository URL.

tw launch [OPTIONS] <PIPELINE_OR_URL>

Arguments

ArgumentDescriptionRequired
PIPELINE_OR_URLWorkspace pipeline name or pipeline URLYes

Options

OptionDescriptionRequiredDefault
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)No
--params-filePipeline parameters in JSON or YAML format. Provide the path to a file containing the content. Use '-' to read from stdin.No
-c, --compute-envCompute environment identifier where the pipeline will run. Defaults to workspace primary compute environment if omitted. Provide the name or identifier.No
-n, --nameCustom run name for the workflow execution.No
--work-dirWork directory path where workflow intermediate files are stored. Defaults to compute environment work directory if omitted.No
-p, --profileArray of Nextflow configuration profile names to apply.No
-r, --revisionGit revision, branch, or tag to use. Use --commit-id to pin to a specific commit within the revision.No
--commit-idSpecific Git commit hash to pin the pipeline execution to.No
--version-idPipeline version identifierYes
--version-namePipeline version nameYes
--waitWait until workflow reaches specified status: SUBMITTED, RUNNING, SUCCEEDED, FAILED, CANCELLED, UNKNOWNNo
-l, --labelsLabels to assign to each pipeline run. Provide comma-separated label values (use key=value format for resource labels). Labels will be created if they don't existNo
--launch-containerContainer image to use for the Nextflow launcher.No
--syntax-parserNextflow language syntax parser version: 'v1' (legacy) or 'v2'. Takes precedence over the value stored in the launch configuration.No
--nextflow-versionNextflow version to run the workflow with. Must exist in the Platform version catalog and meet the minimum required by the compute environment. Takes precedence over the value stored in the launch configuration.No
--output-dirPer-run output directory, passed to Nextflow as '-output-dir'. Requires Nextflow 24.10.0 or later and the workflow outputs syntax. Takes precedence over the value stored in the launch configuration.No
--configNextflow configuration as text (overrides config files). Provide the path to a file containing the content. Use '-' to read from stdin.No
--pre-runAdd a script that executes in the nf-launch script prior to invoking Nextflow processes. See: https://docs.seqera.io/platform-cloud/launch/advanced#pre-and-post-run-scripts. Provide the path to a file containing the content. Use '-' to read from stdin.No
--post-runAdd a script that executes after all Nextflow processes have completed. See: https://docs.seqera.io/platform-cloud/launch/advanced#pre-and-post-run-scripts. Provide the path to a file containing the content. Use '-' to read from stdin.No
--pull-latestPull the latest version of the pipeline from the repository.No
--stub-runExecute a stub run for testing (processes return dummy results).No
--main-scriptAlternative main script filename. Default: main.nf.No
--entry-nameWorkflow entry point name when using Nextflow DSL2.No
--schema-nameName of the pipeline schema to use.No
--user-secretsArray of user secrets to make available to the pipeline.No
--workspace-secretsArray of workspace secrets to make available to the pipeline.No
--disable-optimizationTurn off the optimization for the pipeline before launching.No
--head-job-cpusNumber of CPUs allocated for the Nextflow head job.No
--head-job-memoryMemory allocation for the Nextflow head job in megabytes.No