Skip to main content

nextflow clone

Clone a remote project into a folder.

Usage​

$ nextflow clone [options] [project]

Description​

The clone command downloads a pipeline from a Git-hosting platform into the current directory and modifies it accordingly. To download a pipeline into the global cache ~/.nextflow/assets, use the nextflow pull command.

Changed in version 27.04

The clone command accepts a registry address. Nextflow clones the Git repository of the release given with -r, or of the latest published release, and checks out the commit pinned by the release.

Options​

-d, -deep​

Create a shallow clone of the specified depth.

-h, -help​

Print the command usage.

-hub (github)​

Service hub where the project is hosted. Options: gitlab or bitbucket. Can also be the host of a registry, for example registry.nextflow.io.

-r (master)​

Revision to clone. Can be a git branch, tag, or commit SHA number. For a registry pipeline, the release version.

-user​

Private repository user name.

Examples​

Clone the latest revision of a pipeline:

$ nextflow clone nextflow-io/hello
nextflow-io/hello cloned to: hello

Clone a specific revision of a pipeline:

$ nextflow clone nextflow-io/hello -r v1.1
nextflow-io/hello cloned to: hello

Clone a release of a registry pipeline:

$ nextflow clone https://registry.nextflow.io/pipelines/nf-core/rnaseq -r 3.14.0
nf-core/rnaseq@3.14.0 cloned to: rnaseq