nextflow pull
Download or update a project.
Usage
$ nextflow pull [options] [project]
Description
The pull command downloads a pipeline from a Git-hosting platform into the global cache ~/.nextflow/assets and modifies it accordingly. To download a pipeline into a local directory, use the nextflow clone command.
Options
-a, -all
Update all downloaded projects.
-h, -help
Print the command usage.
-hub (github)
Service hub where the project is hosted. Options: gitlab or bitbucket.
The host of a registry, for example registry.nextflow.io, can be given to download a pipeline from the registry. See Registry pipelines.
-r, -revision
Project revision to run. Can be a git branch, tag, or commit SHA number.
When passing a git tag or branch, the workflow.revision and workflow.commitId fields are populated. When passing only the commit hash, workflow.revision is not defined.
For a registry pipeline, the revision must be a release version published in the registry. Defaults to the latest published release.
-user
Private repository user name.
Registry pipelines
The pull command accepts the same registry addresses as nextflow run: a registry page URL, or a registry host given with -hub or the NXF_HUB environment variable. A plain project name is resolved with Git.
Nextflow resolves the release with the registry, and downloads the Git commit pinned by the release into the assets cache under the registry name. Use it to prepare a run with -offline, for example on compute nodes without network access.
Registry modules and pipelines that the pipeline includes but does not commit are installed at run time, so an -offline run requires them to be committed.
Examples
Download a project, or pull the latest revision if it is already downloaded:
$ nextflow pull nextflow-io/hello
Checking nextflow-io/hello ...
done - revision: 96eb04d6a4 [master]
Pull the latest revision for all downloaded projects:
$ nextflow pull -all
Checking nextflow-io/hello ...
done - revision: 96eb04d6a4 [master]
Checking nextflow-hub/fastqc ...
done - revision: 087659b18e [master]
Pull a specific revision of a project:
$ nextflow pull nextflow-io/hello -r v1.1
Checking nextflow-io/hello ...
checkout-out at AnyObjectId[1c3e9e7404127514d69369cd87f8036830f5cf64] - revision: 1c3e9e7404 [v1.1]
Download a release of a registry pipeline, then run it offline:
$ nextflow pull nf-core/rnaseq -hub registry.nextflow.io -r 3.14.0
$ nextflow run nf-core/rnaseq -hub registry.nextflow.io -r 3.14.0 -offline