Skip to main content

tw pipelines

Run tw pipelines -h to view the list of supported operations.

Pipelines define pre-configured workflows in a workspace. A pipeline consists of a workflow repository, launch parameters, and a compute environment.

tw pipelines list

List pipelines.

tw pipelines list [OPTIONS]

Options

OptionDescriptionRequiredDefault
-f, --filterShow only pipelines that contain the given word
--visibilityShow pipelines: OWNER, MEMBER, COLLABORATOR [default: private].private
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)TOWER_WORKSPACE_ID
--pagePage number for paginated results (default: 1)
--offsetRow offset for paginated results (default: 0)
--maxMaximum number of records to display (default: )

Example

tw pipelines list -w 123456789012345

# Output:
Pipelines at [my-organization-updated / my-workspace] workspace:

ID | Name | Repository | Visibility
-----------------+----------------------+--------------------------------------+------------
777888999000111 | rnaseq4 | https://github.com/nf-core/rnaseq | SHARED
888999000111222 | nf-core-rnaseq | https://github.com/nf-core/rnaseq | SHARED
999000111222333 | rnaseq2 | https://github.com/nf-core/rnaseq | SHARED
555666777888999 | nextflow-hello-saved | https://github.com/nextflow-io/hello | SHARED
000111222333444 | rnaseqapitest | https://github.com/nf-core/rnaseq | SHARED
111222333444555 | rnaseq3 | https://github.com/nf-core/rnaseq | SHARED

tw pipelines add

Add a pipeline.

tw pipelines add [OPTIONS]

Options

OptionDescriptionRequiredDefault
-n, --namePipeline name. Must be unique within the workspace.
-d, --descriptionPipeline description.
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)TOWER_WORKSPACE_ID
--labelsLabels to apply to the resource. Provide comma-separated label values (use key=value format for resource labels). Labels will be created if they don't exist
-c, --compute-envCompute environment identifier where the pipeline will run. Defaults to workspace primary compute environment if omitted. Provide the name or identifier.
--work-dirWork directory path where workflow intermediate files are stored. Defaults to compute environment work directory if omitted.
-p, --profileArray of Nextflow configuration profile names to apply.
--params-filePipeline parameters in JSON or YAML format. Provide the path to a file containing the content.
--revisionGit revision, branch, or tag to use.
--configNextflow configuration as text (overrides config files). Provide the path to a file containing the content.
--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.
--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.
--pull-latestPull the latest version of the pipeline from the repository.
--stub-runExecute a stub run for testing (processes return dummy results).
--main-scriptAlternative main script filename. Default: main.nf.
--entry-nameWorkflow entry point name when using Nextflow DSL2.
--schema-nameName of the pipeline schema to use.
--user-secretsArray of user secrets to make available to the pipeline.
--workspace-secretsArray of workspace secrets to make available to the pipeline.

Run tw pipelines add -h to view the required and optional fields for adding your pipeline.

Add a pre-configured pipeline to the Launchpad:

tw pipelines add --name=my_rnaseq_nf_pipeline \
--params-file=my_rnaseq_nf_pipeline_params.yaml \
--config=<path/to/nextflow/conf/file> \
https://github.com/nextflow-io/rnaseq-nf

New pipeline 'my_rnaseq_nf_pipeline' added at user workspace

The optional --params-file flag is used to pass a set of default parameters that will be associated with the pipeline in the Launchpad.

The optional --config flag is used to pass a custom Nextflow configuration file — configuration values passed here override the same values in the default pipeline repository nextflow.conf file. When this flag is set, all configuration values specified in Platform pipeline or compute environment Nextflow config fields are ignored.

tip

The params-file or --config file must be a YAML or JSON file using [Nextflow configuration][nextflow-config] syntax.

tw pipelines view

View pipeline details.

tw pipelines view [OPTIONS]

Options

OptionDescriptionRequiredDefault
-i, --idPipeline identifier
-n, --namePipeline name
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)TOWER_WORKSPACE_ID

Example

tw pipelines view -n nextflow-hello-saved -w 123456789012345

# Output:
Pipeline at [my-organization-updated / my-workspace] workspace:

--------------+--------------------------------------
ID | 555666777888999
Name | nextflow-hello-saved
Description |
Repository | https://github.com/nextflow-io/hello
Compute env. | deleted-999888777666555
Labels | label3

Configuration:

{
"id" : "4n5o6p7q8r9s0t1u2v3w4x",
"computeEnvId" : "5o6p7q8r9s0t1u2v3w4x5",
"pipeline" : "https://github.com/nextflow-io/hello",
"workDir" : "s3://my-bucket/work",
"userSecrets" : [ ],
"workspaceSecrets" : [ ],
"resume" : false,
"pullLatest" : false,
"stubRun" : false,
"dateCreated" : "2025-01-28T19:32:07Z"
}

tw pipelines update

Update a pipeline.

tw pipelines update [OPTIONS]

Options

OptionDescriptionRequiredDefault
-d, --descriptionPipeline description
--new-namePipeline new name
--pipelineNextflow pipeline URL
-i, --idPipeline identifier
-n, --namePipeline name
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)TOWER_WORKSPACE_ID
-c, --compute-envCompute environment identifier where the pipeline will run. Defaults to workspace primary compute environment if omitted. Provide the name or identifier.
--work-dirWork directory path where workflow intermediate files are stored. Defaults to compute environment work directory if omitted.
-p, --profileArray of Nextflow configuration profile names to apply.
--params-filePipeline parameters in JSON or YAML format. Provide the path to a file containing the content.
--revisionGit revision, branch, or tag to use.
--configNextflow configuration as text (overrides config files). Provide the path to a file containing the content.
--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.
--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.
--pull-latestPull the latest version of the pipeline from the repository.
--stub-runExecute a stub run for testing (processes return dummy results).
--main-scriptAlternative main script filename. Default: main.nf.
--entry-nameWorkflow entry point name when using Nextflow DSL2.
--schema-nameName of the pipeline schema to use.
--user-secretsArray of user secrets to make available to the pipeline.
--workspace-secretsArray of workspace secrets to make available to the pipeline.

The default launch parameters can be changed with the update command:

tw pipelines update --name=my_rnaseq_nf_pipeline \
--params-file=my_rnaseq_nf_pipeline_params_2.yaml

tw pipelines delete

Remove a pipeline.

tw pipelines delete [OPTIONS]

Options

OptionDescriptionRequiredDefault
-i, --idPipeline identifier
-n, --namePipeline name
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)TOWER_WORKSPACE_ID

Example

tw pipelines delete -n rnaseq2 -w 123456789012345

# Output:
Pipeline 'rnaseq2' deleted at [my-organization-updated / my-workspace] workspace

tw pipelines export

Export a pipeline.

tw pipelines export [OPTIONS]

Options

OptionDescriptionRequiredDefault
-i, --idPipeline identifier
-n, --namePipeline name
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)TOWER_WORKSPACE_ID

Example

tw pipelines export -n nf-hello-2026 -w 123456789012345 hello-pipeline-export2.json

# Output:
Pipeline exported into 'hello-pipeline-export2.json'

tw pipelines import

Add a pipeline from file content.

tw pipelines import [OPTIONS]

Options

OptionDescriptionRequiredDefault
-n, --namePipeline name
-c, --compute-envCompute environment name (defaults to value defined in JSON environment file)
--overwriteOverwrite the pipeline if it already exists.false
-w, --workspaceWorkspace numeric identifier or reference in OrganizationName/WorkspaceName format (defaults to TOWER_WORKSPACE_ID environment variable)TOWER_WORKSPACE_ID

Example

tw pipelines import -n nf-hello-2026-imported -w 123456789012345 hello-pipeline-export2.json

# Output:
New pipeline 'nf-hello-2026-imported' added at [my-organization-updated / my-workspace] workspace

tw pipelines labels

Manage pipeline labels.

tw pipelines labels [OPTIONS]

Options

OptionDescriptionRequiredDefault
-i, --idPipeline identifier
-n, --namePipeline name
--no-createAssign labels without creating the ones which were not found.
--operations, -oType of operation (set, append, delete) [default: set].set

Example

tw pipelines labels -n nf-hello-2026 -w 123456789012345 newlabel

# Output:
'set' labels on 'pipeline' with id '666777888999000' at 123456789012345 workspace